This commit is contained in:
Louis Lam
2022-12-08 23:21:55 +08:00
parent e478084ff9
commit 4cd5b5563f
5 changed files with 26 additions and 5 deletions

View File

@@ -26,6 +26,9 @@ export const SQL_DATE_FORMAT = "YYYY-MM-DD";
export const SQL_DATETIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
export const SQL_DATETIME_FORMAT_WITHOUT_SECOND = "YYYY-MM-DD HH:mm";
export const MAX_INTERVAL_SECOND = 2073600; // 24 days
export const MIN_INTERVAL_SECOND = 20; // 20 seconds
/** Flip the status of s */
export function flipStatus(s: number) {
if (s === UP) {