English中文

GregorianDate

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

以比 JavaScript Date 对象更精确的格式表示公历日期。除了亚毫秒精度之外,该对象还可以表示闰秒。 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 月份为整数,范围为 [1, 12]。 The month as a whole number with range [1, 12].
day number 可选 optional 月份中的第几天,作为从 1 开始的整数。 The day of the month as a whole number starting at 1.
hour number 可选 optional 小时作为整数,范围为 [0, 23]。 The hour as a whole number with range [0, 23].
minute number 可选 optional 一小时中的分钟,范围为 [0, 59] 的整数。 The minute of the hour as a whole number with range [0, 59].
second number 可选 optional 分钟的秒数,范围为 [0, 60] 的整数,其中 60 代表闰秒。 The second of the minute as a whole number with range [0, 60], with 60 representing a leap second.
millisecond number 可选 optional 秒的毫秒数,范围为 [0.0, 1000.0) 的浮点数。 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

获取或设置从 1 开始的整数形式的月份中的第几天。 Gets or sets the day of the month as a whole number starting at 1.
获取或设置范围为 [0, 23] 的整数形式的小时。 Gets or sets the hour as a whole number with range [0, 23].
获取或设置该时间是否处于闰秒期间。 Gets or sets whether this time is during a leap second.
获取或设置秒的毫秒数作为浮点数,范围为 [0.0, 1000.0)。 Gets or sets the millisecond of the second as a floating point number with range [0.0, 1000.0).
获取或设置整数形式的分钟,范围为 [0, 59]。 Gets or sets the minute of the hour as a whole number with range [0, 59].
获取或设置范围为 [1, 12] 的整数月份。 Gets or sets the month as a whole number with range [1, 12].
获取或设置分钟的秒数,范围为 [0, 60] 的整数,其中 60 表示闰秒。 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.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.