lib/datetime
Api Code Documentation / Exports / lib/datetime
Table of contents
Functions
Functions
currentUnixTimestamp
▸ currentUnixTimestamp(): number
Returns
number
Defined in
currentUnixTimestampStr
▸ currentUnixTimestampStr(): string
Returns
string
Defined in
toUnixTimestamp
▸ toUnixTimestamp(timestamp
): number
Parameters
Name | Type |
---|---|
timestamp | string | number | Date |
Returns
number
Defined in
toUnixTimestampStr
▸ toUnixTimestampStr(timestamp
): string
Parameters
Name | Type |
---|---|
timestamp | string | number | Date |
Returns
string