utils.timestamp
@bosonprotocol/common / Exports / utils / timestamp
Namespace: timestamp
utils.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
MIN_PER_HOUR
• Const
MIN_PER_HOUR: 60
Defined in
MSEC_PER_DAY
• Const
MSEC_PER_DAY: number
Defined in
MSEC_PER_HOUR
• Const
MSEC_PER_HOUR: number
Defined in
MSEC_PER_MIN
• Const
MSEC_PER_MIN: number
Defined in
MSEC_PER_SEC
• Const
MSEC_PER_SEC: 1000
Defined in
SEC_PER_DAY
• Const
SEC_PER_DAY: number
Defined in
SEC_PER_HOUR
• Const
SEC_PER_HOUR: number
Defined in
SEC_PER_MIN
• Const
SEC_PER_MIN: 60
Defined in
Functions
msToSec
▸ msToSec(ms
): number
Parameters
Name | Type |
---|---|
ms | BigNumberish |
Returns
number