| WbTimeFromDateTime(DateTime, Int32, Int32, WikibaseTimePrecision, Uri) 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 FromDateTime(
DateTime dateTime,
int before,
int after,
WikibaseTimePrecision precision,
Uri calendarModel
)
Public Shared Function FromDateTime (
dateTime As DateTime,
before As Integer,
after As Integer,
precision As WikibaseTimePrecision,
calendarModel As Uri
) As WbTime
Dim dateTime As DateTime
Dim before As Integer
Dim after As Integer
Dim precision As WikibaseTimePrecision
Dim calendarModel As Uri
Dim returnValue As WbTime
returnValue = WbTime.FromDateTime(dateTime,
before, after, precision, calendarModel)
public:
static WbTime FromDateTime(
DateTime dateTime,
int before,
int after,
WikibaseTimePrecision precision,
Uri^ calendarModel
)
static member FromDateTime :
dateTime : DateTime *
before : int *
after : int *
precision : WikibaseTimePrecision *
calendarModel : Uri -> WbTime
Parameters
- dateTime DateTime
[Missing <param name="dateTime"/> documentation for "M:WikiClientLibrary.Wikibase.DataTypes.WbTime.FromDateTime(System.DateTime,System.Int32,System.Int32,WikiClientLibrary.Wikibase.DataTypes.WikibaseTimePrecision,System.Uri)"]
- 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
WbTimeExceptions Remarks This overload uses 0 as
TimeZone if
Kind
is
Utc, and uses local time zone otherwise.
See Also