JulianDate
new Cesium.JulianDate(julianDayNumber, secondsOfDay, timeStandard)
Represents an astronomical Julian date, which is the number of days since noon on January 1, -4712 (4713 BC). For increased precision, this class stores the whole number part of the date and the seconds part of the date in separate components. In order to be safe for arithmetic and represent leap seconds, the date is always stored in the International Atomic Time standard TimeStandard.TAI.
| Name | Type | Default | Description |
|---|---|---|---|
| julianDayNumber | Number | 0.0 | optional The Julian Day Number representing the number of whole days. Fractional days will also be handled correctly. |
| secondsOfDay | Number | 0.0 | optional The number of seconds into the current Julian Day Number. Fractional seconds, negative seconds and seconds greater than a day will be handled correctly. |
| timeStandard | TimeStandard | TimeStandard.UTC | optional The time standard in which the first two parameters are defined. |
Members
static Cesium.JulianDate.leapSeconds : Array.<LeapSecond>
Gets or sets the list of leap seconds used throughout Cesium.
dayNumber : Number
Gets or sets the number of whole days.
secondsOfDay : Number
Gets or sets the number of seconds into the current day.
Cesium.JulianDate.addSeconds(julianDate, seconds, result) → JulianDate
static
Adds the provided number of seconds to the provided date instance.
| Name | Type | Description |
|---|---|---|
| julianDate | JulianDate | The date. |
| seconds | Number | The number of seconds to add or subtract. |
| result | JulianDate | An existing instance to use for the result. |
Returns:
The modified result parameter.
Cesium中的JulianDate类用于表示天文日期,精确到秒。它存储日期的整数天数和当天的秒数。该类考虑了闰秒,并遵循国际原子时标准。成员包括静态属性leapSeconds(闰秒列表)和实例属性dayNumber(天数)、secondsOfDay(当天秒数)。addSeconds方法用于向日期添加指定秒数。
2048

被折叠的 条评论
为什么被折叠?



