| WbTimeFromDateTime(DateTime, WikibaseTimePrecision) Method |
This is preliminary documentation and is subject to change.
Constructs a
WbTime instance from
DateTime, using the appropriate calendar model.
Namespace: WikiClientLibrary.Wikibase.DataTypesAssembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static WbTime FromDateTime(
DateTime dateTime,
WikibaseTimePrecision precision
)
Public Shared Function FromDateTime (
dateTime As DateTime,
precision As WikibaseTimePrecision
) As WbTime
Dim dateTime As DateTime
Dim precision As WikibaseTimePrecision
Dim returnValue As WbTime
returnValue = WbTime.FromDateTime(dateTime,
precision)
public:
static WbTime FromDateTime(
DateTime dateTime,
WikibaseTimePrecision precision
)
static member FromDateTime :
dateTime : DateTime *
precision : WikibaseTimePrecision -> WbTime
Parameters
- dateTime DateTime
[Missing <param name="dateTime"/> documentation for "M:WikiClientLibrary.Wikibase.DataTypes.WbTime.FromDateTime(System.DateTime,WikiClientLibrary.Wikibase.DataTypes.WikibaseTimePrecision)"]
- precision WikibaseTimePrecision
- The unit of the precision of the time.
Return Value
WbTimeExceptions Remarks This overload uses 0 as
TimeZone if
Kind
is
Utc, and uses local time zone otherwise.
See Also