Click or drag to resize

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.DataTypes
Assembly: 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
)

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
ExceptionCondition
ArgumentNullExceptioncalendarModel is null.
ArgumentOutOfRangeExceptionOne or more numeric parameters are out of range.
See Also