mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-07 16:33:51 +00:00
023aac4ead
* refactor: extract utilities and types * refactor: extract and simplify progress bar logic * refactor: duration validation handles midnight * fix: prevent stale event loader * refactor: consider next event in timer invalidation * refactor: reload changes on changed roll target * refactor: timer load accounts for midnight * fix: issues with midnight on roll * refactor: prevent stale secondary event
18 lines
231 B
JavaScript
18 lines
231 B
JavaScript
/**
|
|
* millis to seconds
|
|
* @type {number}
|
|
*/
|
|
export const mts = 1000;
|
|
|
|
/**
|
|
* millis to minutes
|
|
* @type {number}
|
|
*/
|
|
export const mtm = 1000 * 60;
|
|
|
|
/**
|
|
* millis to hours
|
|
* @type {number}
|
|
*/
|
|
export const mth = 1000 * 60 * 60;
|