GregorianDate

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

以比 JavaScript Date 对象更精确的格式表示公历日期。 除了亚毫秒精度外,此对象还可以表示闰秒。
Name Type Description
year number optional 整数的年份。
month number optional 整数月份,范围为 [1, 12]。
day number optional 从 1 开始的整数。
hour number optional 小时,范围为 [0, 23]。
minute number optional 一小时的整数分钟,范围为 [0, 59]。
second number optional 分钟的第二个整数,范围为 [0, 60],其中 60 表示闰秒。
millisecond number optional 秒的毫秒,以浮点数表示,范围为 [0.0, 1000.0]。
isLeapSecond boolean optional 此时间是否在闰秒期间。
See:
  • JulianDate#toGregorianDate

Members

获取或设置以整数形式表示的月份中的日期,从 1 开始。
获取或设置hour 为整数,范围 [0, 23].
获取或设置此时间是否在闰秒期间。
获取或设置millisecond 作为浮点数,范围 [0.0, 1000.0).
获取或设置hour 的整数 minute (分钟) 和 range [0, 59].
获取或设置month 为整数,范围 [1, 12].
获取或设置minute 的 second 为整数,范围 [0, 60], 其中 60 表示闰秒。
获取或设置year 的整数。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.