| WbTimeFromDateTimeOffset(DateTimeOffset, Int32, Int32, WikibaseTimePrecision) Method |
This is preliminary documentation and is subject to change.
Namespace: WikiClientLibrary.Wikibase.DataTypesAssembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static WbTime FromDateTimeOffset(
DateTimeOffset dateTime,
int before,
int after,
WikibaseTimePrecision precision
)
Public Shared Function FromDateTimeOffset (
dateTime As DateTimeOffset,
before As Integer,
after As Integer,
precision As WikibaseTimePrecision
) As WbTime
Dim dateTime As DateTimeOffset
Dim before As Integer
Dim after As Integer
Dim precision As WikibaseTimePrecision
Dim returnValue As WbTime
returnValue = WbTime.FromDateTimeOffset(dateTime,
before, after, precision)
public:
static WbTime FromDateTimeOffset(
DateTimeOffset dateTime,
int before,
int after,
WikibaseTimePrecision precision
)
static member FromDateTimeOffset :
dateTime : DateTimeOffset *
before : int *
after : int *
precision : WikibaseTimePrecision -> WbTime
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.
Return Value
WbTimeExceptions See Also