Gets or sets the number of seconds into the current day.
Gets or sets the list of leap seconds used throughout Cesium.
Duplicates this instance.
The modified result parameter or a new instance if none was provided.
Compares this and the provided instance and returns true
if they are equal, false
otherwise.
true
if the dates are equal; otherwise, false
.
Compares this and the provided instance and returns true
if they are within epsilon
seconds of
each other. That is, in order for the dates to be considered equal (and for
this function to return true
), the absolute value of the difference between them, in
seconds, must be less than epsilon
.
true
if the two dates are within epsilon
seconds of each other; otherwise false
.
Creates a string representing this date in ISO8601 format.
A string representing this date in ISO8601 format.
Adds the provided number of days to the provided date instance.
The date.
The number of days to add or subtract.
An existing instance to use for the result.
The modified result parameter.
Adds the provided number of hours to the provided date instance.
The date.
The number of hours to add or subtract.
An existing instance to use for the result.
The modified result parameter.
Adds the provided number of minutes to the provided date instance.
The date.
The number of minutes to add or subtract.
An existing instance to use for the result.
The modified result parameter.
Adds the provided number of seconds to the provided date instance.
The date.
The number of seconds to add or subtract.
An existing instance to use for the result.
The modified result parameter.
Duplicates a JulianDate instance.
The date to duplicate.
The modified result parameter or a new instance if none was provided. Returns undefined if julianDate is undefined.
Compares two instances.
The first instance.
The second instance.
A negative value if left is less than right, a positive value if left is greater than right, or zero if left and right are equal.
Computes the number of seconds the provided instance is ahead of UTC.
The date.
The number of seconds the provided instance is ahead of UTC
Computes the difference in days between the provided instance.
The first instance.
The second instance.
The difference, in days, when subtracting right
from left
.
Compares two instances and returns true
if they are equal, false
otherwise.
true
if the dates are equal; otherwise, false
.
Compares two instances and returns true
if they are within epsilon
seconds of
each other. That is, in order for the dates to be considered equal (and for
this function to return true
), the absolute value of the difference between them, in
seconds, must be less than epsilon
.
true
if the two dates are within epsilon
seconds of each other; otherwise false
.
Creates a new instance from a JavaScript Date.
A JavaScript Date.
The modified result parameter or a new instance if none was provided.
Creates a new instance from a GregorianDate.
A GregorianDate.
The modified result parameter or a new instance if none was provided.
Creates a new instance from a from an ISO 8601 date.
This method is superior to Date.parse
because it will handle all valid formats defined by the ISO 8601
specification, including leap seconds and sub-millisecond times, which discarded by most JavaScript implementations.
An ISO 8601 date.
The modified result parameter or a new instance if none was provided.
Compares the provided instances and returns true
if left
is later than right
, false
otherwise.
The first instance.
The second instance.
true
if left
is later than right
, false
otherwise.
Compares the provided instances and returns true
if left
is later than or equal to right
, false
otherwise.
The first instance.
The second instance.
true
if left
is later than or equal to right
, false
otherwise.
Compares the provided instances and returns true
if left
is earlier than right
, false
otherwise.
The first instance.
The second instance.
true
if left
is earlier than right
, false
otherwise.
Compares the provided instances and returns true
if left
is earlier than or equal to right
, false
otherwise.
The first instance.
The second instance.
true
if left
is earlier than or equal to right
, false
otherwise.
Creates a new instance that represents the current system time.
This is equivalent to calling JulianDate.fromDate(new Date());
.
The modified result parameter or a new instance if none was provided.
Computes the difference in seconds between the provided instance.
The first instance.
The second instance.
The difference, in seconds, when subtracting right
from left
.
Creates a JavaScript Date from the provided instance. Since JavaScript dates are only accurate to the nearest millisecond and cannot represent a leap second, consider using JulianDate.toGregorianDate instead. If the provided JulianDate is during a leap second, the previous second is used.
The date to be converted.
A new instance representing the provided date.
Creates a {@link GregorianDate} from the provided instance.
The date to be converted.
The modified result parameter or a new instance if none was provided.
Creates an ISO8601 representation of the provided date.
The date to be converted.
The ISO8601 representation of the provided date.
Computes the total number of whole and fractional days represented by the provided instance.
The date.
The Julian date as single floating point number.
Gets or sets the number of whole days.