1 | export var SECONDS_A_MINUTE = 60;
|
2 | export var SECONDS_A_HOUR = SECONDS_A_MINUTE * 60;
|
3 | export var SECONDS_A_DAY = SECONDS_A_HOUR * 24;
|
4 | export var SECONDS_A_WEEK = SECONDS_A_DAY * 7;
|
5 | export var MILLISECONDS_A_SECOND = 1e3;
|
6 | export var MILLISECONDS_A_MINUTE = SECONDS_A_MINUTE * MILLISECONDS_A_SECOND;
|
7 | export var MILLISECONDS_A_HOUR = SECONDS_A_HOUR * MILLISECONDS_A_SECOND;
|
8 | export var MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND;
|
9 | export var MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND;
|
10 |
|
11 | export var MS = 'millisecond';
|
12 | export var S = 'second';
|
13 | export var MIN = 'minute';
|
14 | export var H = 'hour';
|
15 | export var D = 'day';
|
16 | export var W = 'week';
|
17 | export var M = 'month';
|
18 | export var Q = 'quarter';
|
19 | export var Y = 'year';
|
20 | export var DATE = 'date';
|
21 | export var FORMAT_DEFAULT = 'YYYY-MM-DDTHH:mm:ssZ';
|
22 | export var INVALID_DATE_STRING = 'Invalid Date';
|
23 |
|
24 | export var REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/;
|
25 | export var REGEX_FORMAT = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g; |
\ | No newline at end of file |