| WbTimeParse Method |
This is preliminary documentation and is subject to change.
Parses
WbTime from its string representation.
Namespace: WikiClientLibrary.Wikibase.DataTypesAssembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static WbTime Parse(
string dateTime,
int before,
int after,
int timeZone,
WikibaseTimePrecision precision,
Uri calendarModel
)
Public Shared Function Parse (
dateTime As String,
before As Integer,
after As Integer,
timeZone As Integer,
precision As WikibaseTimePrecision,
calendarModel As Uri
) As WbTime
Dim dateTime As String
Dim before As Integer
Dim after As Integer
Dim timeZone As Integer
Dim precision As WikibaseTimePrecision
Dim calendarModel As Uri
Dim returnValue As WbTime
returnValue = WbTime.Parse(dateTime,
before, after, timeZone, precision,
calendarModel)
public:
static WbTime Parse(
String^ dateTime,
int before,
int after,
int timeZone,
WikibaseTimePrecision precision,
Uri^ calendarModel
)
static member Parse :
dateTime : string *
before : int *
after : int *
timeZone : int *
precision : WikibaseTimePrecision *
calendarModel : Uri -> WbTime
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
WbTimeExceptions See Also