| WbTime Constructor |
This is preliminary documentation and is subject to change.
Initialize a new instance of
WbTime with the specified time point, time zone,
precision and calendar model.
Namespace: WikiClientLibrary.Wikibase.DataTypesAssembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public WbTime(
int year,
int month,
int day,
int hour,
int minute,
int second,
int before,
int after,
int timeZone,
WikibaseTimePrecision precision,
Uri? calendarModel
)
Public Sub New (
year As Integer,
month As Integer,
day As Integer,
hour As Integer,
minute As Integer,
second As Integer,
before As Integer,
after As Integer,
timeZone As Integer,
precision As WikibaseTimePrecision,
calendarModel As Uri
)
Dim year As Integer
Dim month As Integer
Dim day As Integer
Dim hour As Integer
Dim minute As Integer
Dim second As Integer
Dim before As Integer
Dim after As Integer
Dim timeZone As Integer
Dim precision As WikibaseTimePrecision
Dim calendarModel As Uri
Dim instance As New WbTime(year, month,
day, hour, minute, second, before,
after, timeZone, precision, calendarModel)
public:
WbTime(
int year,
int month,
int day,
int hour,
int minute,
int second,
int before,
int after,
int timeZone,
WikibaseTimePrecision precision,
Uri^ calendarModel
)
new :
year : int *
month : int *
day : int *
hour : int *
minute : int *
second : int *
before : int *
after : int *
timeZone : int *
precision : WikibaseTimePrecision *
calendarModel : Uri -> WbTime
Parameters
- year Int32
- The year (-999999999 through 999999999).
- month Int32
- The month (positive integer).
- day Int32
- The day (positive integer).
- hour Int32
- The hour (0 through 23).
- minute Int32
- The hour (0 through 59).
- second Int32
- The hour (0 through 59).
- 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.
Exceptions See Also