Companion

Functions

Link copied to clipboard
fun now(): JsLong

Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC).

Link copied to clipboard

Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.

Link copied to clipboard
fun UTC(year: Int, monthIndex: Int, date: Int = definedExternally, hours: Int = definedExternally, minutes: Int = definedExternally, seconds: Int = definedExternally, milliseconds: Int = definedExternally): JsLong

Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.