GregorianDate

new Cesium.GregorianDate(year, month, day, hour, minute, second, millisecond, isLeapSecond)

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.
参数名称 类型 描述信息
year number 可选 The year as a whole number.
month number 可选 The month as a whole number with range [1, 12].
day number 可选 The day of the month as a whole number starting at 1.
hour number 可选 The hour as a whole number with range [0, 23].
minute number 可选 The minute of the hour as a whole number with range [0, 59].
second number 可选 The second of the minute as a whole number with range [0, 60], with 60 representing a leap second.
millisecond number 可选 The millisecond of the second as a floating point number with range [0.0, 1000.0).
isLeapSecond boolean 可选 Whether this time is during a leap second.
参考:
  • JulianDate#toGregorianDate

成员(属性)

Gets or sets the day of the month as a whole number starting at 1.
Gets or sets the hour as a whole number with range [0, 23].
Gets or sets whether this time is during a leap second.
Gets or sets the millisecond of the second as a floating point number with range [0.0, 1000.0).
Gets or sets the minute of the hour as a whole number with range [0, 59].
Gets or sets the month as a whole number with range [1, 12].
Gets or sets the second of the minute as a whole number with range [0, 60], with 60 representing a leap second.
Gets or sets the year as a whole number.