# GregorianDate

#### new Cesium.GregorianDate(year, month, day, hour, minute, second, millisecond, isLeapSecond)
engine/Source/Core/GregorianDate.js 25

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.

Name | Type | Description
--- | --- | ---
`year` | number | optional The year as a whole number.
`month` | number | optional The month as a whole number with range [1, 12].
`day` | number | optional The day of the month as a whole number starting at 1.
`hour` | number | optional The hour as a whole number with range [0, 23].
`minute` | number | optional The minute of the hour as a whole number with range [0, 59].
`second` | number | optional The second of the minute as a whole number with range [0, 60], with 60 representing a leap second.
`millisecond` | number | optional The millisecond of the second as a floating point number with range [0.0, 1000.0).
`isLeapSecond` | boolean | optional Whether this time is during a leap second.

##### See:

- JulianDate#toGregorianDate

### Members

#### day : number
engine/Source/Core/GregorianDate.js 70

Gets or sets the day of the month as a whole number starting at 1.

#### hour : number
engine/Source/Core/GregorianDate.js 75

Gets or sets the hour as a whole number with range [0, 23].

#### isLeapSecond : boolean
engine/Source/Core/GregorianDate.js 95

Gets or sets whether this time is during a leap second.

#### millisecond : number
engine/Source/Core/GregorianDate.js 90

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

#### minute : number
engine/Source/Core/GregorianDate.js 80

Gets or sets the minute of the hour as a whole number with range [0, 59].

#### month : number
engine/Source/Core/GregorianDate.js 65

Gets or sets the month as a whole number with range [1, 12].

#### second : number
engine/Source/Core/GregorianDate.js 85

Gets or sets the second of the minute as a whole number with range [0, 60], with 60 representing a leap second.

#### year : number
engine/Source/Core/GregorianDate.js 60

Gets or sets the year as a whole number.

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.