Appearance
KBE3D / KBCore / Cesium / GregorianDate
类: GregorianDate
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.
参数
The year as a whole number.
参数
The month as a whole number with range [1, 12].
参数
The day of the month as a whole number starting at 1.
参数
The hour as a whole number with range [0, 23].
参数
The minute of the hour as a whole number with range [0, 59].
参数
The second of the minute as a whole number with range [0, 60], with 60 representing a leap second.
参数
The millisecond of the second as a floating point number with range [0.0, 1000.0).
参数
Whether this time is during a leap second.
属性
year
year:
number
Gets or sets the year as a whole number.
month
month:
number
Gets or sets the month as a whole number with range [1, 12].
day
day:
number
Gets or sets the day of the month as a whole number starting at 1.
hour
hour:
number
Gets or sets the hour as a whole number with range [0, 23].
minute
minute:
number
Gets or sets the minute of the hour as a whole number with range [0, 59].
second
second:
number
Gets or sets the second of the minute as a whole number with range [0, 60], with 60 representing a leap second.
millisecond
millisecond:
number
Gets or sets the millisecond of the second as a floating point number with range [0.0, 1000.0).
isLeapSecond
isLeapSecond:
boolean
Gets or sets whether this time is during a leap second.
构造函数
构造函数
new GregorianDate(
year?:number,month?:number,day?:number,hour?:number,minute?:number,second?:number,millisecond?:number,isLeapSecond?:boolean):GregorianDate
参数
year?
number
month?
number
day?
number
hour?
number
minute?
number
second?
number
millisecond?
number
isLeapSecond?
boolean
返回
GregorianDate
