GregorianDate

external class GregorianDate(var year: Int = definedExternally, var month: Int = definedExternally, var day: Int = definedExternally, var hour: Int = definedExternally, var minute: Int = definedExternally, var second: Int = definedExternally, var millisecond: Int = definedExternally, var isLeapSecond: Boolean = definedExternally)(source)

Represents a Gregorian date in a more precise format than the JavaScript Date object. In addition to submillisecond precision, this object can also represent leap seconds.

See also

Constructors

Link copied to clipboard
constructor(year: Int = definedExternally, month: Int = definedExternally, day: Int = definedExternally, hour: Int = definedExternally, minute: Int = definedExternally, second: Int = definedExternally, millisecond: Int = definedExternally, isLeapSecond: Boolean = definedExternally)

Properties

Link copied to clipboard
var day: Int

The day of the month as a whole number starting at 1.

Link copied to clipboard
var hour: Int

The hour as a whole number with range 0, 23.

Link copied to clipboard

Whether this time is during a leap second.

Link copied to clipboard

The millisecond of the second as a floating point number with range [0.0, 1000.0).

Link copied to clipboard
var minute: Int

The minute of the hour as a whole number with range 0, 59.

Link copied to clipboard
var month: Int

The month as a whole number with range 1, 12.

Link copied to clipboard
var second: Int

The second of the minute as a whole number with range 0, 60, with 60 representing a leap second.

Link copied to clipboard
var year: Int

The year as a whole number.