accounts.utils.timestamp
@bosonprotocol/core-sdk / Exports / accounts / utils / timestamp
Namespace: timestamp
Table of contents
Variables
- HOURS_PER_DAY
- MIN_PER_HOUR
- MSEC_PER_DAY
- MSEC_PER_HOUR
- MSEC_PER_MIN
- MSEC_PER_SEC
- SEC_PER_DAY
- SEC_PER_HOUR
- SEC_PER_MIN
Functions
Variables
HOURS_PER_DAY
• Const
HOURS_PER_DAY: 24
Defined in
node_modules/@bosonprotocol/common/dist/cjs/utils/timestamp.d.ts:2
MIN_PER_HOUR
• Const
MIN_PER_HOUR: 60
Defined in
node_modules/@bosonprotocol/common/dist/cjs/utils/timestamp.d.ts:3
MSEC_PER_DAY
• Const
MSEC_PER_DAY: number
Defined in
node_modules/@bosonprotocol/common/dist/cjs/utils/timestamp.d.ts:10
MSEC_PER_HOUR
• Const
MSEC_PER_HOUR: number
Defined in
node_modules/@bosonprotocol/common/dist/cjs/utils/timestamp.d.ts:9
MSEC_PER_MIN
• Const
MSEC_PER_MIN: number
Defined in
node_modules/@bosonprotocol/common/dist/cjs/utils/timestamp.d.ts:8
MSEC_PER_SEC
• Const
MSEC_PER_SEC: 1000
Defined in
node_modules/@bosonprotocol/common/dist/cjs/utils/timestamp.d.ts:5
SEC_PER_DAY
• Const
SEC_PER_DAY: number
Defined in
node_modules/@bosonprotocol/common/dist/cjs/utils/timestamp.d.ts:7
SEC_PER_HOUR
• Const
SEC_PER_HOUR: number
Defined in
node_modules/@bosonprotocol/common/dist/cjs/utils/timestamp.d.ts:6
SEC_PER_MIN
• Const
SEC_PER_MIN: 60
Defined in
node_modules/@bosonprotocol/common/dist/cjs/utils/timestamp.d.ts:4
Functions
msToSec
▸ msToSec(ms
): number
Parameters
Name | Type |
---|---|
ms | BigNumberish |
Returns
number
Defined in
node_modules/@bosonprotocol/common/dist/cjs/utils/timestamp.d.ts:11