Skip to content

datetime

Properties

The datetime instance has no set properties!

Methods

The datetime instance has no set methods!

Functions

fromIsoDate

datetime . fromIsoDate (

     isoDate: string
)  -> ()

Creates a new DateTime from an ISO 8601 date-time string.

fromUnixTimestamp

datetime . fromUnixTimestamp (

     unixTimestamp: number
)  -> ()

Creates a new DateTime from the given UNIX timestamp.

This timestamp may contain both a whole and fractional part - where the fractional part denotes milliseconds / nanoseconds.

now

datetime . now ()  -> ()

Returns a DateTime representing the current moment in time.