Skip to content

Commit fbb7b2c

Browse files
add constants for millisecond amounts
Signed-off-by: nkomonen-amazon <[email protected]>
1 parent cfba32d commit fbb7b2c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*!
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
// constants for working with milliseconds
7+
export const oneSecond = 1000
8+
export const oneMinute = oneSecond * 60
9+
export const oneHour = oneMinute * 60
10+
export const oneDay = oneHour * 24

0 commit comments

Comments
 (0)