fromDate

fun fromDate(date: Date, result: JulianDate? = definedExternally): JulianDate(source)

Creates a new instance from a JavaScript Date.

Return

The modified result parameter or a new instance if none was provided.

Parameters

date

A JavaScript Date.

result

An existing instance to use for the result.

See also