Skip to main content

utils.timestamp

@bosonprotocol/common / Exports / utils / timestamp

Namespace: timestamp

utils.timestamp

Table of contents

Variables

Functions

Variables

HOURS_PER_DAY

Const HOURS_PER_DAY: 24

Defined in

src/utils/timestamp.ts:3


MIN_PER_HOUR

Const MIN_PER_HOUR: 60

Defined in

src/utils/timestamp.ts:4


MSEC_PER_DAY

Const MSEC_PER_DAY: number

Defined in

src/utils/timestamp.ts:11


MSEC_PER_HOUR

Const MSEC_PER_HOUR: number

Defined in

src/utils/timestamp.ts:10


MSEC_PER_MIN

Const MSEC_PER_MIN: number

Defined in

src/utils/timestamp.ts:9


MSEC_PER_SEC

Const MSEC_PER_SEC: 1000

Defined in

src/utils/timestamp.ts:6


SEC_PER_DAY

Const SEC_PER_DAY: number

Defined in

src/utils/timestamp.ts:8


SEC_PER_HOUR

Const SEC_PER_HOUR: number

Defined in

src/utils/timestamp.ts:7


SEC_PER_MIN

Const SEC_PER_MIN: 60

Defined in

src/utils/timestamp.ts:5

Functions

msToSec

msToSec(ms): number

Parameters

NameType
msBigNumberish

Returns

number

Defined in

src/utils/timestamp.ts:13