Click or drag to resize

WbTimeParse Method

This is preliminary documentation and is subject to change.

Parses WbTime from its string representation.

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

Parameters

dateTime  String
The string representation of the date and time. Currently only ISO-8601 format is supported.
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.
timeZone  Int32
Time zone offset in minutes. See TimeZone for more information.
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