Datetime
Summary
Functions
Section titled “Functions”fromIsoDate
Section titled “fromIsoDate”Datetime . fromIsoDate ( isoDate ) -> DateTime
Creates a new DateTime from an ISO 8601 date-time string.
Parameters
| isoDate: string |
Returns
| DateTime |
fromUnixTimestamp
Section titled “fromUnixTimestamp”Datetime . fromUnixTimestamp ( unixTimestamp ) -> DateTime
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.
Parameters
| unixTimestamp: number |
Returns
| DateTime |
Datetime . now ( ) -> DateTime
Returns a DateTime representing the current moment in time.
Returns
| DateTime |