client: Use named constants for time calculations #183
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
|||
import { DAY, HOUR } from '@/const';
|
||||
|
||||
const dateTimeIntervals = {
|
||||
'day': 86400000,
|
||||
'hour': 3600000,
|
||||
'day': DAY,
|
||||
'hour': HOUR,
|
||||
'ms': 1,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue