date-and-time 0.14.2 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/EXTEND.md +29 -11
  2. package/LOCALE.md +19 -34
  3. package/PLUGINS.md +222 -113
  4. package/README.md +203 -171
  5. package/date-and-time.js +171 -147
  6. package/date-and-time.min.js +14 -14
  7. package/esm/date-and-time.es.js +466 -0
  8. package/esm/date-and-time.es.min.js +17 -0
  9. package/esm/date-and-time.mjs +466 -0
  10. package/esm/locale/ar.es.js +39 -0
  11. package/esm/locale/ar.mjs +39 -0
  12. package/esm/locale/az.es.js +44 -0
  13. package/esm/locale/az.mjs +44 -0
  14. package/esm/locale/bn.es.js +50 -0
  15. package/esm/locale/bn.mjs +50 -0
  16. package/esm/locale/cs.es.js +22 -0
  17. package/esm/locale/cs.mjs +22 -0
  18. package/esm/locale/de.es.js +23 -0
  19. package/esm/locale/de.mjs +23 -0
  20. package/esm/locale/dk.es.js +22 -0
  21. package/esm/locale/dk.mjs +22 -0
  22. package/esm/locale/el.es.js +44 -0
  23. package/esm/locale/el.mjs +44 -0
  24. package/esm/locale/en.es.js +13 -0
  25. package/esm/locale/en.mjs +13 -0
  26. package/esm/locale/es.es.js +42 -0
  27. package/esm/locale/es.mjs +42 -0
  28. package/esm/locale/fa.es.js +39 -0
  29. package/esm/locale/fa.mjs +39 -0
  30. package/esm/locale/fr.es.js +23 -0
  31. package/esm/locale/fr.mjs +23 -0
  32. package/esm/locale/hi.es.js +50 -0
  33. package/esm/locale/hi.mjs +50 -0
  34. package/esm/locale/hu.es.js +23 -0
  35. package/esm/locale/hu.mjs +23 -0
  36. package/esm/locale/id.es.js +46 -0
  37. package/esm/locale/id.mjs +46 -0
  38. package/esm/locale/it.es.js +23 -0
  39. package/esm/locale/it.mjs +23 -0
  40. package/esm/locale/ja.es.js +31 -0
  41. package/esm/locale/ja.mjs +31 -0
  42. package/esm/locale/jv.es.js +46 -0
  43. package/esm/locale/jv.mjs +46 -0
  44. package/esm/locale/ko.es.js +23 -0
  45. package/esm/locale/ko.mjs +23 -0
  46. package/esm/locale/my.es.js +38 -0
  47. package/esm/locale/my.mjs +38 -0
  48. package/esm/locale/nl.es.js +37 -0
  49. package/esm/locale/nl.mjs +37 -0
  50. package/esm/locale/pa-in.es.js +62 -0
  51. package/esm/locale/pa-in.mjs +62 -0
  52. package/esm/locale/pl.es.js +37 -0
  53. package/esm/locale/pl.mjs +37 -0
  54. package/esm/locale/pt.es.js +44 -0
  55. package/esm/locale/pt.mjs +44 -0
  56. package/esm/locale/ro.es.js +22 -0
  57. package/esm/locale/ro.mjs +22 -0
  58. package/esm/locale/ru.es.js +44 -0
  59. package/esm/locale/ru.mjs +44 -0
  60. package/esm/locale/rw.es.js +22 -0
  61. package/esm/locale/rw.mjs +22 -0
  62. package/esm/locale/sr.es.js +22 -0
  63. package/esm/locale/sr.mjs +22 -0
  64. package/esm/locale/th.es.js +23 -0
  65. package/esm/locale/th.mjs +23 -0
  66. package/esm/locale/tr.es.js +22 -0
  67. package/esm/locale/tr.mjs +22 -0
  68. package/esm/locale/uk.es.js +57 -0
  69. package/esm/locale/uk.mjs +57 -0
  70. package/esm/locale/uz.es.js +22 -0
  71. package/esm/locale/uz.mjs +22 -0
  72. package/esm/locale/vi.es.js +23 -0
  73. package/esm/locale/vi.mjs +23 -0
  74. package/esm/locale/zh-cn.es.js +48 -0
  75. package/esm/locale/zh-cn.mjs +48 -0
  76. package/esm/locale/zh-tw.es.js +46 -0
  77. package/esm/locale/zh-tw.mjs +46 -0
  78. package/esm/plugin/day-of-week.es.js +19 -0
  79. package/esm/plugin/day-of-week.mjs +19 -0
  80. package/esm/plugin/meridiem.es.js +47 -0
  81. package/esm/plugin/meridiem.mjs +47 -0
  82. package/esm/plugin/microsecond.es.js +31 -0
  83. package/esm/plugin/microsecond.mjs +31 -0
  84. package/esm/plugin/ordinal.es.js +34 -0
  85. package/esm/plugin/ordinal.mjs +34 -0
  86. package/esm/plugin/timespan.es.js +75 -0
  87. package/esm/plugin/timespan.mjs +75 -0
  88. package/esm/plugin/timezone.es.js +73 -0
  89. package/esm/plugin/timezone.mjs +73 -0
  90. package/esm/plugin/two-digit-year.es.js +21 -0
  91. package/esm/plugin/two-digit-year.mjs +21 -0
  92. package/locale/ar.js +14 -19
  93. package/locale/az.js +14 -19
  94. package/locale/bn.js +14 -19
  95. package/locale/cs.js +14 -19
  96. package/locale/de.js +15 -20
  97. package/locale/dk.js +15 -20
  98. package/locale/el.js +21 -24
  99. package/locale/en.js +17 -19
  100. package/locale/es.js +14 -19
  101. package/locale/fa.js +14 -19
  102. package/locale/fr.js +14 -19
  103. package/locale/hi.js +14 -19
  104. package/locale/hu.js +14 -19
  105. package/locale/id.js +14 -19
  106. package/locale/it.js +14 -19
  107. package/locale/ja.js +14 -19
  108. package/locale/jv.js +14 -19
  109. package/locale/ko.js +14 -19
  110. package/locale/my.js +14 -19
  111. package/locale/nl.js +20 -23
  112. package/locale/pa-in.js +14 -19
  113. package/locale/pl.js +20 -23
  114. package/locale/pt.js +14 -19
  115. package/locale/ro.js +15 -20
  116. package/locale/ru.js +14 -19
  117. package/locale/rw.js +30 -0
  118. package/locale/sr.js +14 -19
  119. package/locale/th.js +14 -19
  120. package/locale/tr.js +14 -19
  121. package/locale/uk.js +23 -26
  122. package/locale/uz.js +14 -19
  123. package/locale/vi.js +14 -19
  124. package/locale/zh-cn.js +14 -19
  125. package/locale/zh-tw.js +14 -19
  126. package/package.json +26 -11
  127. package/plugin/day-of-week.js +13 -14
  128. package/plugin/meridiem.js +32 -24
  129. package/plugin/microsecond.js +14 -15
  130. package/plugin/ordinal.js +13 -14
  131. package/plugin/timespan.js +13 -14
  132. package/plugin/timezone.js +81 -0
  133. package/plugin/two-digit-year.js +13 -19
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Hungarian (hu)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var hu = function (date) {
8
+ var code = 'hu';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['január', 'február', 'március', 'április', 'május', 'június', 'július', 'augusztus', 'szeptember', 'október', 'november', 'december'],
13
+ MMM: ['jan', 'feb', 'márc', 'ápr', 'máj', 'jún', 'júl', 'aug', 'szept', 'okt', 'nov', 'dec'],
14
+ dddd: ['vasárnap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'],
15
+ ddd: ['vas', 'hét', 'kedd', 'sze', 'csüt', 'pén', 'szo'],
16
+ dd: ['v', 'h', 'k', 'sze', 'cs', 'p', 'szo'],
17
+ A: ['de', 'du']
18
+ }
19
+ });
20
+ return code;
21
+ };
22
+
23
+ export { hu as default };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Hungarian (hu)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var hu = function (date) {
8
+ var code = 'hu';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['január', 'február', 'március', 'április', 'május', 'június', 'július', 'augusztus', 'szeptember', 'október', 'november', 'december'],
13
+ MMM: ['jan', 'feb', 'márc', 'ápr', 'máj', 'jún', 'júl', 'aug', 'szept', 'okt', 'nov', 'dec'],
14
+ dddd: ['vasárnap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'],
15
+ ddd: ['vas', 'hét', 'kedd', 'sze', 'csüt', 'pén', 'szo'],
16
+ dd: ['v', 'h', 'k', 'sze', 'cs', 'p', 'szo'],
17
+ A: ['de', 'du']
18
+ }
19
+ });
20
+ return code;
21
+ };
22
+
23
+ export { hu as default };
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Indonesian (id)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var id = function (date) {
8
+ var code = 'id';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'],
13
+ MMM: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Ags', 'Sep', 'Okt', 'Nov', 'Des'],
14
+ dddd: ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'],
15
+ ddd: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
16
+ dd: ['Mg', 'Sn', 'Sl', 'Rb', 'Km', 'Jm', 'Sb'],
17
+ A: ['pagi', 'siang', 'sore', 'malam']
18
+ },
19
+ formatter: {
20
+ A: function (d) {
21
+ var h = d.getHours();
22
+ if (h < 11) {
23
+ return this.res.A[0]; // pagi
24
+ } else if (h < 15) {
25
+ return this.res.A[1]; // siang
26
+ } else if (h < 19) {
27
+ return this.res.A[2]; // sore
28
+ }
29
+ return this.res.A[3]; // malam
30
+ }
31
+ },
32
+ parser: {
33
+ h12: function (h, a) {
34
+ if (a < 1) {
35
+ return h; // pagi
36
+ } else if (a < 2) {
37
+ return h >= 11 ? h : h + 12; // siang
38
+ }
39
+ return h + 12; // sore, malam
40
+ }
41
+ }
42
+ });
43
+ return code;
44
+ };
45
+
46
+ export { id as default };
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Indonesian (id)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var id = function (date) {
8
+ var code = 'id';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'],
13
+ MMM: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Ags', 'Sep', 'Okt', 'Nov', 'Des'],
14
+ dddd: ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'],
15
+ ddd: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
16
+ dd: ['Mg', 'Sn', 'Sl', 'Rb', 'Km', 'Jm', 'Sb'],
17
+ A: ['pagi', 'siang', 'sore', 'malam']
18
+ },
19
+ formatter: {
20
+ A: function (d) {
21
+ var h = d.getHours();
22
+ if (h < 11) {
23
+ return this.res.A[0]; // pagi
24
+ } else if (h < 15) {
25
+ return this.res.A[1]; // siang
26
+ } else if (h < 19) {
27
+ return this.res.A[2]; // sore
28
+ }
29
+ return this.res.A[3]; // malam
30
+ }
31
+ },
32
+ parser: {
33
+ h12: function (h, a) {
34
+ if (a < 1) {
35
+ return h; // pagi
36
+ } else if (a < 2) {
37
+ return h >= 11 ? h : h + 12; // siang
38
+ }
39
+ return h + 12; // sore, malam
40
+ }
41
+ }
42
+ });
43
+ return code;
44
+ };
45
+
46
+ export { id as default };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Italian (it)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var it = function (date) {
8
+ var code = 'it';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'],
13
+ MMM: ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'],
14
+ dddd: ['Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'],
15
+ ddd: ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'],
16
+ dd: ['Do', 'Lu', 'Ma', 'Me', 'Gi', 'Ve', 'Sa'],
17
+ A: ['di mattina', 'di pomerrigio']
18
+ }
19
+ });
20
+ return code;
21
+ };
22
+
23
+ export { it as default };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Italian (it)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var it = function (date) {
8
+ var code = 'it';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'],
13
+ MMM: ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'],
14
+ dddd: ['Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'],
15
+ ddd: ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'],
16
+ dd: ['Do', 'Lu', 'Ma', 'Me', 'Gi', 'Ve', 'Sa'],
17
+ A: ['di mattina', 'di pomerrigio']
18
+ }
19
+ });
20
+ return code;
21
+ };
22
+
23
+ export { it as default };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Japanese (ja)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var ja = function (date) {
8
+ var code = 'ja';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
13
+ MMM: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
14
+ dddd: ['日曜日', '月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日'],
15
+ ddd: ['日', '月', '火', '水', '木', '金', '土'],
16
+ dd: ['日', '月', '火', '水', '木', '金', '土'],
17
+ A: ['午前', '午後']
18
+ },
19
+ formatter: {
20
+ hh: function (d) {
21
+ return ('0' + d.getHours() % 12).slice(-2);
22
+ },
23
+ h: function (d) {
24
+ return d.getHours() % 12;
25
+ }
26
+ }
27
+ });
28
+ return code;
29
+ };
30
+
31
+ export { ja as default };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Japanese (ja)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var ja = function (date) {
8
+ var code = 'ja';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
13
+ MMM: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
14
+ dddd: ['日曜日', '月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日'],
15
+ ddd: ['日', '月', '火', '水', '木', '金', '土'],
16
+ dd: ['日', '月', '火', '水', '木', '金', '土'],
17
+ A: ['午前', '午後']
18
+ },
19
+ formatter: {
20
+ hh: function (d) {
21
+ return ('0' + d.getHours() % 12).slice(-2);
22
+ },
23
+ h: function (d) {
24
+ return d.getHours() % 12;
25
+ }
26
+ }
27
+ });
28
+ return code;
29
+ };
30
+
31
+ export { ja as default };
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Javanese (jv)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var jv = function (date) {
8
+ var code = 'jv';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'Nopember', 'Desember'],
13
+ MMM: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Ags', 'Sep', 'Okt', 'Nop', 'Des'],
14
+ dddd: ['Minggu', 'Senen', 'Seloso', 'Rebu', 'Kemis', 'Jemuwah', 'Septu'],
15
+ ddd: ['Min', 'Sen', 'Sel', 'Reb', 'Kem', 'Jem', 'Sep'],
16
+ dd: ['Mg', 'Sn', 'Sl', 'Rb', 'Km', 'Jm', 'Sp'],
17
+ A: ['enjing', 'siyang', 'sonten', 'ndalu']
18
+ },
19
+ formatter: {
20
+ A: function (d) {
21
+ var h = d.getHours();
22
+ if (h < 11) {
23
+ return this.res.A[0]; // enjing
24
+ } else if (h < 15) {
25
+ return this.res.A[1]; // siyang
26
+ } else if (h < 19) {
27
+ return this.res.A[2]; // sonten
28
+ }
29
+ return this.res.A[3]; // ndalu
30
+ }
31
+ },
32
+ parser: {
33
+ h12: function (h, a) {
34
+ if (a < 1) {
35
+ return h; // enjing
36
+ } else if (a < 2) {
37
+ return h >= 11 ? h : h + 12; // siyang
38
+ }
39
+ return h + 12; // sonten, ndalu
40
+ }
41
+ }
42
+ });
43
+ return code;
44
+ };
45
+
46
+ export { jv as default };
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Javanese (jv)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var jv = function (date) {
8
+ var code = 'jv';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'Nopember', 'Desember'],
13
+ MMM: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Ags', 'Sep', 'Okt', 'Nop', 'Des'],
14
+ dddd: ['Minggu', 'Senen', 'Seloso', 'Rebu', 'Kemis', 'Jemuwah', 'Septu'],
15
+ ddd: ['Min', 'Sen', 'Sel', 'Reb', 'Kem', 'Jem', 'Sep'],
16
+ dd: ['Mg', 'Sn', 'Sl', 'Rb', 'Km', 'Jm', 'Sp'],
17
+ A: ['enjing', 'siyang', 'sonten', 'ndalu']
18
+ },
19
+ formatter: {
20
+ A: function (d) {
21
+ var h = d.getHours();
22
+ if (h < 11) {
23
+ return this.res.A[0]; // enjing
24
+ } else if (h < 15) {
25
+ return this.res.A[1]; // siyang
26
+ } else if (h < 19) {
27
+ return this.res.A[2]; // sonten
28
+ }
29
+ return this.res.A[3]; // ndalu
30
+ }
31
+ },
32
+ parser: {
33
+ h12: function (h, a) {
34
+ if (a < 1) {
35
+ return h; // enjing
36
+ } else if (a < 2) {
37
+ return h >= 11 ? h : h + 12; // siyang
38
+ }
39
+ return h + 12; // sonten, ndalu
40
+ }
41
+ }
42
+ });
43
+ return code;
44
+ };
45
+
46
+ export { jv as default };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Korean (ko)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var ko = function (date) {
8
+ var code = 'ko';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
13
+ MMM: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
14
+ dddd: ['일요일', '월요일', '화요일', '수요일', '목요일', '금요일', '토요일'],
15
+ ddd: ['일', '월', '화', '수', '목', '금', '토'],
16
+ dd: ['일', '월', '화', '수', '목', '금', '토'],
17
+ A: ['오전', '오후']
18
+ }
19
+ });
20
+ return code;
21
+ };
22
+
23
+ export { ko as default };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Korean (ko)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var ko = function (date) {
8
+ var code = 'ko';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
13
+ MMM: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
14
+ dddd: ['일요일', '월요일', '화요일', '수요일', '목요일', '금요일', '토요일'],
15
+ ddd: ['일', '월', '화', '수', '목', '금', '토'],
16
+ dd: ['일', '월', '화', '수', '목', '금', '토'],
17
+ A: ['오전', '오후']
18
+ }
19
+ });
20
+ return code;
21
+ };
22
+
23
+ export { ko as default };
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Burmese (my)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var my = function (date) {
8
+ var code = 'my';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['ဇန်နဝါရီ', 'ဖေဖော်ဝါရီ', 'မတ်', 'ဧပြီ', 'မေ', 'ဇွန်', 'ဇူလိုင်', 'သြဂုတ်', 'စက်တင်ဘာ', 'အောက်တိုဘာ', 'နိုဝင်ဘာ', 'ဒီဇင်ဘာ'],
13
+ MMM: ['ဇန်', 'ဖေ', 'မတ်', 'ပြီ', 'မေ', 'ဇွန်', 'လိုင်', 'သြ', 'စက်', 'အောက်', 'နို', 'ဒီ'],
14
+ dddd: ['တနင်္ဂနွေ', 'တနင်္လာ', 'အင်္ဂါ', 'ဗုဒ္ဓဟူး', 'ကြာသပတေး', 'သောကြာ', 'စနေ'],
15
+ ddd: ['နွေ', 'လာ', 'ဂါ', 'ဟူး', 'ကြာ', 'သော', 'နေ'],
16
+ dd: ['နွေ', 'လာ', 'ဂါ', 'ဟူး', 'ကြာ', 'သော', 'နေ']
17
+ },
18
+ formatter: {
19
+ post: function (str) {
20
+ var num = ['၀', '၁', '၂', '၃', '၄', '၅', '၆', '၇', '၈', '၉'];
21
+ return str.replace(/\d/g, function (i) {
22
+ return num[i | 0];
23
+ });
24
+ }
25
+ },
26
+ parser: {
27
+ pre: function (str) {
28
+ var map = { '၀': 0, '၁': 1, '၂': 2, '၃': 3, '၄': 4, '၅': 5, '၆': 6, '၇': 7, '၈': 8, '၉': 9 };
29
+ return str.replace(/[၀၁၂၃၄၅၆၇၈၉]/g, function (i) {
30
+ return '' + map[i];
31
+ });
32
+ }
33
+ }
34
+ });
35
+ return code;
36
+ };
37
+
38
+ export { my as default };
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Burmese (my)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var my = function (date) {
8
+ var code = 'my';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['ဇန်နဝါရီ', 'ဖေဖော်ဝါရီ', 'မတ်', 'ဧပြီ', 'မေ', 'ဇွန်', 'ဇူလိုင်', 'သြဂုတ်', 'စက်တင်ဘာ', 'အောက်တိုဘာ', 'နိုဝင်ဘာ', 'ဒီဇင်ဘာ'],
13
+ MMM: ['ဇန်', 'ဖေ', 'မတ်', 'ပြီ', 'မေ', 'ဇွန်', 'လိုင်', 'သြ', 'စက်', 'အောက်', 'နို', 'ဒီ'],
14
+ dddd: ['တနင်္ဂနွေ', 'တနင်္လာ', 'အင်္ဂါ', 'ဗုဒ္ဓဟူး', 'ကြာသပတေး', 'သောကြာ', 'စနေ'],
15
+ ddd: ['နွေ', 'လာ', 'ဂါ', 'ဟူး', 'ကြာ', 'သော', 'နေ'],
16
+ dd: ['နွေ', 'လာ', 'ဂါ', 'ဟူး', 'ကြာ', 'သော', 'နေ']
17
+ },
18
+ formatter: {
19
+ post: function (str) {
20
+ var num = ['၀', '၁', '၂', '၃', '၄', '၅', '၆', '၇', '၈', '၉'];
21
+ return str.replace(/\d/g, function (i) {
22
+ return num[i | 0];
23
+ });
24
+ }
25
+ },
26
+ parser: {
27
+ pre: function (str) {
28
+ var map = { '၀': 0, '၁': 1, '၂': 2, '၃': 3, '၄': 4, '၅': 5, '၆': 6, '၇': 7, '၈': 8, '၉': 9 };
29
+ return str.replace(/[၀၁၂၃၄၅၆၇၈၉]/g, function (i) {
30
+ return '' + map[i];
31
+ });
32
+ }
33
+ }
34
+ });
35
+ return code;
36
+ };
37
+
38
+ export { my as default };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Dutch (nl)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var nl = function (date) {
8
+ var code = 'nl';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
13
+ MMM: [
14
+ ['jan.', 'feb.', 'mrt.', 'apr.', 'mei', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'],
15
+ ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec']
16
+ ],
17
+ dddd: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
18
+ ddd: ['zo.', 'ma.', 'di.', 'wo.', 'do.', 'vr.', 'za.'],
19
+ dd: ['Zo', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za']
20
+ },
21
+ formatter: {
22
+ MMM: function (d, formatString) {
23
+ return this.res.MMM[/-MMM-/.test(formatString) | 0][d.getMonth()];
24
+ }
25
+ },
26
+ parser: {
27
+ MMM: function (str, formatString) {
28
+ var result = this.find(this.res.MMM[/-MMM-/.test(formatString) | 0], str);
29
+ result.value++;
30
+ return result;
31
+ }
32
+ }
33
+ });
34
+ return code;
35
+ };
36
+
37
+ export { nl as default };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Dutch (nl)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var nl = function (date) {
8
+ var code = 'nl';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
13
+ MMM: [
14
+ ['jan.', 'feb.', 'mrt.', 'apr.', 'mei', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'],
15
+ ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec']
16
+ ],
17
+ dddd: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
18
+ ddd: ['zo.', 'ma.', 'di.', 'wo.', 'do.', 'vr.', 'za.'],
19
+ dd: ['Zo', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za']
20
+ },
21
+ formatter: {
22
+ MMM: function (d, formatString) {
23
+ return this.res.MMM[/-MMM-/.test(formatString) | 0][d.getMonth()];
24
+ }
25
+ },
26
+ parser: {
27
+ MMM: function (str, formatString) {
28
+ var result = this.find(this.res.MMM[/-MMM-/.test(formatString) | 0], str);
29
+ result.value++;
30
+ return result;
31
+ }
32
+ }
33
+ });
34
+ return code;
35
+ };
36
+
37
+ export { nl as default };
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @preserve date-and-time.js locale configuration
3
+ * @preserve Punjabi (pa-in)
4
+ * @preserve It is using moment.js locale configuration as a reference.
5
+ */
6
+
7
+ var pa_in = function (date) {
8
+ var code = 'pa-in';
9
+
10
+ date.locale(code, {
11
+ res: {
12
+ MMMM: ['ਜਨਵਰੀ', 'ਫ਼ਰਵਰੀ', 'ਮਾਰਚ', 'ਅਪ੍ਰੈਲ', 'ਮਈ', 'ਜੂਨ', 'ਜੁਲਾਈ', 'ਅਗਸਤ', 'ਸਤੰਬਰ', 'ਅਕਤੂਬਰ', 'ਨਵੰਬਰ', 'ਦਸੰਬਰ'],
13
+ MMM: ['ਜਨਵਰੀ', 'ਫ਼ਰਵਰੀ', 'ਮਾਰਚ', 'ਅਪ੍ਰੈਲ', 'ਮਈ', 'ਜੂਨ', 'ਜੁਲਾਈ', 'ਅਗਸਤ', 'ਸਤੰਬਰ', 'ਅਕਤੂਬਰ', 'ਨਵੰਬਰ', 'ਦਸੰਬਰ'],
14
+ dddd: ['ਐਤਵਾਰ', 'ਸੋਮਵਾਰ', 'ਮੰਗਲਵਾਰ', 'ਬੁਧਵਾਰ', 'ਵੀਰਵਾਰ', 'ਸ਼ੁੱਕਰਵਾਰ', 'ਸ਼ਨੀਚਰਵਾਰ'],
15
+ ddd: ['ਐਤ', 'ਸੋਮ', 'ਮੰਗਲ', 'ਬੁਧ', 'ਵੀਰ', 'ਸ਼ੁਕਰ', 'ਸ਼ਨੀ'],
16
+ dd: ['ਐਤ', 'ਸੋਮ', 'ਮੰਗਲ', 'ਬੁਧ', 'ਵੀਰ', 'ਸ਼ੁਕਰ', 'ਸ਼ਨੀ'],
17
+ A: ['ਰਾਤ', 'ਸਵੇਰ', 'ਦੁਪਹਿਰ', 'ਸ਼ਾਮ']
18
+ },
19
+ formatter: {
20
+ A: function (d) {
21
+ var h = d.getHours();
22
+ if (h < 4) {
23
+ return this.res.A[0]; // ਰਾਤ
24
+ } else if (h < 10) {
25
+ return this.res.A[1]; // ਸਵੇਰ
26
+ } else if (h < 17) {
27
+ return this.res.A[2]; // ਦੁਪਹਿਰ
28
+ } else if (h < 20) {
29
+ return this.res.A[3]; // ਸ਼ਾਮ
30
+ }
31
+ return this.res.A[0]; // ਰਾਤ
32
+ },
33
+ post: function (str) {
34
+ var num = ['੦', '੧', '੨', '੩', '੪', '੫', '੬', '੭', '੮', '੯'];
35
+ return str.replace(/\d/g, function (i) {
36
+ return num[i | 0];
37
+ });
38
+ }
39
+ },
40
+ parser: {
41
+ h12: function (h, a) {
42
+ if (a < 1) {
43
+ return h < 4 || h > 11 ? h : h + 12; // ਰਾਤ
44
+ } else if (a < 2) {
45
+ return h; // ਸਵੇਰ
46
+ } else if (a < 3) {
47
+ return h >= 10 ? h : h + 12; // ਦੁਪਹਿਰ
48
+ }
49
+ return h + 12; // ਸ਼ਾਮ
50
+ },
51
+ pre: function (str) {
52
+ var map = { '੦': 0, '੧': 1, '੨': 2, '੩': 3, '੪': 4, '੫': 5, '੬': 6, '੭': 7, '੮': 8, '੯': 9 };
53
+ return str.replace(/[੦੧੨੩੪੫੬੭੮੯]/g, function (i) {
54
+ return '' + map[i];
55
+ });
56
+ }
57
+ }
58
+ });
59
+ return code;
60
+ };
61
+
62
+ export { pa_in as default };