Skip to main content

lib/datetime

Api Code Documentation / Exports / lib/datetime

Table of contents

Functions

Functions

currentUnixTimestamp

currentUnixTimestamp(): number

Returns

number

Defined in

src/lib/datetime.ts:10


currentUnixTimestampStr

currentUnixTimestampStr(): string

Returns

string

Defined in

src/lib/datetime.ts:14


toUnixTimestamp

toUnixTimestamp(timestamp): number

Parameters

NameType
timestampstring | number | Date

Returns

number

Defined in

src/lib/datetime.ts:1


toUnixTimestampStr

toUnixTimestampStr(timestamp): string

Parameters

NameType
timestampstring | number | Date

Returns

string

Defined in

src/lib/datetime.ts:6