Click or drag to resize

WbTime Structure

This is preliminary documentation and is subject to change.

The date-time point value used in Wikibase.
Inheritance Hierarchy
SystemObject
  SystemValueType
    WikiClientLibrary.Wikibase.DataTypesWbTime

Namespace: WikiClientLibrary.Wikibase.DataTypes
Assembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public struct WbTime : IEquatable<WbTime>

The WbTime type exposes the following members.

Constructors
 NameDescription
Public methodWbTimeInitialize a new instance of WbTime with the specified time point, time zone, precision and calendar model.
Top
Properties
 NameDescription
Public propertyAfter Number of units before the given time it could be, if uncertain. The unit is given by the precision.
Public propertyBefore Number of units after the given time it could be, if uncertain. The unit is given by the precision.
Public propertyCalendarModel The entity URI of the calendar model.
Public propertyDay 
Public propertyStatic memberGregorianCalendar The URI for Gregorian calendar.
Public propertyHour 
Public propertyStatic memberJulianCalendar The URI for Julian calendar.
Public propertyMinute 
Public propertyMonth 
Public propertyPrecision The unit of the precision of the time.
Public propertySecond 
Public propertyTimeZone Time zone offset in minutes.
Public propertyYear 
Top
Methods
 NameDescription
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodEquals(WbTime)Indicates whether the current object is equal to another object of the same type.
Public methodStatic memberFromDateTime(DateTime, WikibaseTimePrecision)Constructs a WbTime instance from DateTime, using the appropriate calendar model.
Public methodStatic memberFromDateTime(DateTime, Int32, Int32, WikibaseTimePrecision)Constructs a WbTime instance from DateTime.
Public methodStatic memberFromDateTime(DateTime, Int32, Int32, WikibaseTimePrecision, Uri)Constructs a WbTime instance from DateTime.
Public methodStatic memberFromDateTimeOffset(DateTimeOffset, Int32, Int32, WikibaseTimePrecision)Constructs a WbTime instance from DateTimeOffset, using the appropriate calendar model.
Public methodStatic memberFromDateTimeOffset(DateTimeOffset, Int32, Int32, WikibaseTimePrecision, Uri)Constructs a WbTime instance from DateTimeOffset.
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberParseParses WbTime from its string representation.
Public methodToDateTimeOffset Converts to DateTimeOffset, using appropriate rounding specified by Precision.
Public methodToIso8601UtcString Formats the date and time part into ISO-8601 UTC date time format.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Top
Operators
See Also