toDate

fun toDate(julianDate: JulianDate): Date(source)

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.

Return

A new instance representing the provided date.

Parameters

julianDate

The date to be converted.

See also