refactor api.dayMapping to DAY_MAPPING const, not exposed on api

This commit is contained in:
Alys
2015-11-21 20:33:01 +10:00
parent a6fb5790e5
commit a73662bab6
3 changed files with 28 additions and 15 deletions

16
common/script/cron.js Normal file
View File

@@ -0,0 +1,16 @@
/*
------------------------------------------------------
Cron and time / day functions
------------------------------------------------------
*/
export const DAY_MAPPING = {
0: 'su',
1: 'm',
2: 't',
3: 'w',
4: 'th',
5: 'f',
6: 's',
};