Click or drag to resize

WbTimeFromDateTimeOffset(DateTimeOffset, Int32, Int32, WikibaseTimePrecision, Uri) Method

This is preliminary documentation and is subject to change.

Constructs a WbTime instance from DateTimeOffset.

Namespace: WikiClientLibrary.Wikibase.DataTypes
Assembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntax
public static WbTime FromDateTimeOffset(
	DateTimeOffset dateTime,
	int before,
	int after,
	WikibaseTimePrecision precision,
	Uri calendarModel
)

Parameters

dateTime  DateTimeOffset
The date, time, and time zone.
before  Int32
Number of units before the given time it could be, if uncertain. The unit is given by precision.
after  Int32
Number of units after the given time it could be, if uncertain. The unit is given by precision.
precision  WikibaseTimePrecision
The unit of the precision of the time.
calendarModel  Uri
The entity URI of the calendar model.

Return Value

WbTime
Exceptions
ExceptionCondition
ArgumentNullExceptioncalendarModel is null.
ArgumentOutOfRangeExceptionOne or more numeric parameters are out of range.
See Also