# GregorianDate

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

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
Core/GregorianDate.js 33

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

#### hour : Number
Core/GregorianDate.js 38

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

#### isLeapSecond : Boolean
Core/GregorianDate.js 58

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

#### millisecond : Number
Core/GregorianDate.js 53

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

#### minute : Number
Core/GregorianDate.js 43

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

#### month : Number
Core/GregorianDate.js 28

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

#### second : Number
Core/GregorianDate.js 48

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

#### year : Number
Core/GregorianDate.js 23

Gets or sets the year as a whole number.