esday 0.4.1 → 0.5.0
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.
- package/CHANGELOG.md +8 -0
- package/LICENSE +21 -0
- package/README.md +20 -2
- package/chunks/B5f9poqo.js +120 -0
- package/chunks/BDssPbM_.js +106 -0
- package/chunks/BRRrAbUl.js +56 -0
- package/chunks/BXRGSAJG.js +128 -0
- package/chunks/BeVgU2nj.js +188 -0
- package/chunks/BtmEtAW3.js +43 -0
- package/chunks/CQ57zhVp.js +106 -0
- package/chunks/CQJ0-ZuR.js +106 -0
- package/chunks/CWqzr5E5.js +108 -0
- package/chunks/Cb5SvF6r.js +25 -0
- package/chunks/Cg4ZI9v8.js +180 -0
- package/chunks/CoBtJ4c1.js +144 -0
- package/chunks/D009Z-ld.js +109 -0
- package/chunks/DMtTiWuY.js +127 -0
- package/chunks/DXHbH1CI.js +9 -0
- package/chunks/Dixb5KKs.js +116 -0
- package/chunks/DjY7KvwG.js +28 -0
- package/chunks/DqhiVwLi.d.ts +203 -0
- package/chunks/GjKpN6U-.js +135 -0
- package/chunks/MtjcOKi-.d.ts +6 -0
- package/chunks/St35qgL0.d.ts +103 -0
- package/chunks/Y32qdU_5.js +62 -0
- package/chunks/br7kModF.js +110 -0
- package/chunks/l2Rxo2H0.js +106 -0
- package/chunks/tfkJ5D3p.js +115 -0
- package/index.d.ts +3 -6
- package/index.js +556 -293
- package/locales/af.d.ts +8 -0
- package/locales/af.js +106 -0
- package/locales/am.d.ts +8 -0
- package/locales/am.js +106 -0
- package/locales/ar-dz.d.ts +11 -0
- package/locales/ar-dz.js +32 -0
- package/locales/ar-iq.d.ts +11 -0
- package/locales/ar-iq.js +14 -0
- package/locales/ar-kw.d.ts +11 -0
- package/locales/ar-kw.js +28 -0
- package/locales/ar-ly.d.ts +11 -0
- package/locales/ar-ly.js +14 -0
- package/locales/ar-ma.d.ts +11 -0
- package/locales/ar-ma.js +29 -0
- package/locales/ar-sa.d.ts +11 -0
- package/locales/ar-sa.js +29 -0
- package/locales/ar-tn.d.ts +11 -0
- package/locales/ar-tn.js +29 -0
- package/locales/ar.d.ts +8 -0
- package/locales/ar.js +3 -0
- package/locales/az.d.ts +8 -0
- package/locales/az.js +106 -0
- package/locales/be.d.ts +8 -0
- package/locales/be.js +140 -0
- package/locales/bg.d.ts +8 -0
- package/locales/bg.js +125 -0
- package/locales/bi.d.ts +8 -0
- package/locales/bi.js +106 -0
- package/locales/bm.d.ts +8 -0
- package/locales/bm.js +106 -0
- package/locales/bn-bd.d.ts +11 -0
- package/locales/bn-bd.js +24 -0
- package/locales/bn.d.ts +8 -0
- package/locales/bn.js +3 -0
- package/locales/bo.d.ts +8 -0
- package/locales/bo.js +106 -0
- package/locales/br.d.ts +8 -0
- package/locales/br.js +179 -0
- package/locales/bs.d.ts +8 -0
- package/locales/bs.js +128 -0
- package/locales/ca.d.ts +8 -0
- package/locales/ca.js +143 -0
- package/locales/cs.d.ts +8 -0
- package/locales/cs.js +182 -0
- package/locales/cv.d.ts +8 -0
- package/locales/cv.js +106 -0
- package/locales/cy.d.ts +8 -0
- package/locales/cy.js +106 -0
- package/locales/da.d.ts +8 -0
- package/locales/da.js +106 -0
- package/locales/de-at.d.ts +11 -0
- package/locales/de-at.js +44 -0
- package/locales/de-ch.d.ts +11 -0
- package/locales/de-ch.js +14 -0
- package/locales/de.d.ts +8 -0
- package/locales/de.js +3 -0
- package/locales/dv.d.ts +8 -0
- package/locales/dv.js +106 -0
- package/locales/el.d.ts +8 -0
- package/locales/el.js +115 -0
- package/locales/en-au.d.ts +11 -0
- package/locales/en-au.js +27 -0
- package/locales/en-ca.d.ts +11 -0
- package/locales/en-ca.js +27 -0
- package/locales/en-gb.d.ts +13 -0
- package/locales/en-gb.js +28 -0
- package/locales/en-ie.d.ts +11 -0
- package/locales/en-ie.js +26 -0
- package/locales/en-il.d.ts +11 -0
- package/locales/en-il.js +28 -0
- package/locales/en-in.d.ts +11 -0
- package/locales/en-in.js +26 -0
- package/locales/en-nz.d.ts +11 -0
- package/locales/en-nz.js +28 -0
- package/locales/en-sg.d.ts +11 -0
- package/locales/en-sg.js +28 -0
- package/locales/en-tt.d.ts +11 -0
- package/locales/en-tt.js +28 -0
- package/locales/en-us.d.ts +11 -0
- package/locales/en-us.js +13 -0
- package/locales/en.d.ts +7 -5
- package/locales/en.js +3 -1
- package/locales/eo.d.ts +8 -0
- package/locales/eo.js +106 -0
- package/locales/es-do.d.ts +11 -0
- package/locales/es-do.js +27 -0
- package/locales/es-mx.d.ts +11 -0
- package/locales/es-mx.js +15 -0
- package/locales/es-pr.d.ts +11 -0
- package/locales/es-pr.js +18 -0
- package/locales/es-us.d.ts +11 -0
- package/locales/es-us.js +14 -0
- package/locales/es.d.ts +8 -0
- package/locales/es.js +3 -0
- package/locales/et.d.ts +8 -0
- package/locales/et.js +142 -0
- package/locales/eu.d.ts +8 -0
- package/locales/eu.js +106 -0
- package/locales/fa.d.ts +8 -0
- package/locales/fa.js +106 -0
- package/locales/fi.d.ts +8 -0
- package/locales/fi.js +165 -0
- package/locales/fil.d.ts +8 -0
- package/locales/fil.js +106 -0
- package/locales/fo.d.ts +8 -0
- package/locales/fo.js +106 -0
- package/locales/fr-ca.d.ts +11 -0
- package/locales/fr-ca.js +18 -0
- package/locales/fr-ch.d.ts +11 -0
- package/locales/fr-ch.js +18 -0
- package/locales/fr.d.ts +8 -0
- package/locales/fr.js +3 -0
- package/locales/fy.d.ts +8 -0
- package/locales/fy.js +106 -0
- package/locales/ga.d.ts +8 -0
- package/locales/ga.js +106 -0
- package/locales/gd.d.ts +8 -0
- package/locales/gd.js +106 -0
- package/locales/gl.d.ts +8 -0
- package/locales/gl.js +116 -0
- package/locales/gom-deva.d.ts +8 -0
- package/locales/gom-deva.js +146 -0
- package/locales/gom-latn.d.ts +8 -0
- package/locales/gom-latn.js +146 -0
- package/locales/gu.d.ts +8 -0
- package/locales/gu.js +106 -0
- package/locales/he.d.ts +8 -0
- package/locales/he.js +129 -0
- package/locales/hi.d.ts +8 -0
- package/locales/hi.js +125 -0
- package/locales/hr.d.ts +8 -0
- package/locales/hr.js +189 -0
- package/locales/ht.d.ts +8 -0
- package/locales/ht.js +106 -0
- package/locales/hu.d.ts +8 -0
- package/locales/hu.js +140 -0
- package/locales/hy-am.d.ts +8 -0
- package/locales/hy-am.js +127 -0
- package/locales/id.d.ts +8 -0
- package/locales/id.js +106 -0
- package/locales/is.d.ts +8 -0
- package/locales/is.js +155 -0
- package/locales/it-ch.d.ts +11 -0
- package/locales/it-ch.js +32 -0
- package/locales/it.d.ts +8 -0
- package/locales/it.js +3 -0
- package/locales/ja.d.ts +15 -0
- package/locales/ja.js +109 -0
- package/locales/jv.d.ts +8 -0
- package/locales/jv.js +106 -0
- package/locales/ka.d.ts +8 -0
- package/locales/ka.js +126 -0
- package/locales/kk.d.ts +8 -0
- package/locales/kk.js +106 -0
- package/locales/km.d.ts +8 -0
- package/locales/km.js +106 -0
- package/locales/kn.d.ts +8 -0
- package/locales/kn.js +106 -0
- package/locales/ko.d.ts +8 -0
- package/locales/ko.js +105 -0
- package/locales/ku.d.ts +8 -0
- package/locales/ku.js +119 -0
- package/locales/ky.d.ts +8 -0
- package/locales/ky.js +106 -0
- package/locales/lb.d.ts +8 -0
- package/locales/lb.js +166 -0
- package/locales/lo.d.ts +8 -0
- package/locales/lo.js +105 -0
- package/locales/lt.d.ts +8 -0
- package/locales/lt.js +106 -0
- package/locales/lv.d.ts +8 -0
- package/locales/lv.js +106 -0
- package/locales/me.d.ts +8 -0
- package/locales/me.js +129 -0
- package/locales/mi.d.ts +8 -0
- package/locales/mi.js +106 -0
- package/locales/mk.d.ts +8 -0
- package/locales/mk.js +117 -0
- package/locales/ml.d.ts +8 -0
- package/locales/ml.js +109 -0
- package/locales/mn.d.ts +8 -0
- package/locales/mn.js +106 -0
- package/locales/mr.d.ts +8 -0
- package/locales/mr.js +215 -0
- package/locales/ms-my.d.ts +11 -0
- package/locales/ms-my.js +14 -0
- package/locales/ms.d.ts +8 -0
- package/locales/ms.js +3 -0
- package/locales/mt.d.ts +8 -0
- package/locales/mt.js +106 -0
- package/locales/my.d.ts +8 -0
- package/locales/my.js +132 -0
- package/locales/nb.d.ts +8 -0
- package/locales/nb.js +106 -0
- package/locales/ne.d.ts +8 -0
- package/locales/ne.js +106 -0
- package/locales/nl-be.d.ts +11 -0
- package/locales/nl-be.js +18 -0
- package/locales/nl.d.ts +8 -0
- package/locales/nl.js +3 -0
- package/locales/nn.d.ts +8 -0
- package/locales/nn.js +106 -0
- package/locales/oc-lnc.d.ts +8 -0
- package/locales/oc-lnc.js +126 -0
- package/locales/pa-in.d.ts +8 -0
- package/locales/pa-in.js +123 -0
- package/locales/pl.d.ts +8 -0
- package/locales/pl.js +159 -0
- package/locales/pt-br.d.ts +11 -0
- package/locales/pt-br.js +53 -0
- package/locales/pt.d.ts +8 -0
- package/locales/pt.js +3 -0
- package/locales/rn.d.ts +8 -0
- package/locales/rn.js +106 -0
- package/locales/ro.d.ts +8 -0
- package/locales/ro.js +106 -0
- package/locales/ru.d.ts +15 -0
- package/locales/ru.js +236 -0
- package/locales/rw.d.ts +8 -0
- package/locales/rw.js +106 -0
- package/locales/sd.d.ts +8 -0
- package/locales/sd.js +106 -0
- package/locales/se.d.ts +8 -0
- package/locales/se.js +106 -0
- package/locales/si.d.ts +8 -0
- package/locales/si.js +106 -0
- package/locales/sk.d.ts +8 -0
- package/locales/sk.js +162 -0
- package/locales/sl.d.ts +8 -0
- package/locales/sl.js +171 -0
- package/locales/sq.d.ts +8 -0
- package/locales/sq.js +106 -0
- package/locales/sr-cyrl.d.ts +11 -0
- package/locales/sr-cyrl.js +173 -0
- package/locales/sr.d.ts +8 -0
- package/locales/sr.js +3 -0
- package/locales/ss.d.ts +8 -0
- package/locales/ss.js +108 -0
- package/locales/sv-fi.d.ts +11 -0
- package/locales/sv-fi.js +27 -0
- package/locales/sv.d.ts +8 -0
- package/locales/sv.js +3 -0
- package/locales/sw.d.ts +8 -0
- package/locales/sw.js +106 -0
- package/locales/ta.d.ts +8 -0
- package/locales/ta.js +137 -0
- package/locales/te.d.ts +8 -0
- package/locales/te.js +109 -0
- package/locales/tet.d.ts +8 -0
- package/locales/tet.js +110 -0
- package/locales/tg.d.ts +8 -0
- package/locales/tg.js +128 -0
- package/locales/th.d.ts +8 -0
- package/locales/th.js +106 -0
- package/locales/tk.d.ts +8 -0
- package/locales/tk.js +134 -0
- package/locales/tl-ph.d.ts +8 -0
- package/locales/tl-ph.js +106 -0
- package/locales/tlh.d.ts +8 -0
- package/locales/tlh.js +152 -0
- package/locales/tr.d.ts +8 -0
- package/locales/tr.js +134 -0
- package/locales/tzl.d.ts +8 -0
- package/locales/tzl.js +123 -0
- package/locales/tzm-latn.d.ts +11 -0
- package/locales/tzm-latn.js +68 -0
- package/locales/tzm.d.ts +8 -0
- package/locales/tzm.js +3 -0
- package/locales/ug-cn.d.ts +8 -0
- package/locales/ug-cn.js +111 -0
- package/locales/uk.d.ts +8 -0
- package/locales/uk.js +194 -0
- package/locales/ur.d.ts +8 -0
- package/locales/ur.js +108 -0
- package/locales/uz-latn.d.ts +11 -0
- package/locales/uz-latn.js +68 -0
- package/locales/uz.d.ts +8 -0
- package/locales/uz.js +3 -0
- package/locales/vi.d.ts +8 -0
- package/locales/vi.js +106 -0
- package/locales/x-pseudo.d.ts +8 -0
- package/locales/x-pseudo.js +110 -0
- package/locales/yo.d.ts +8 -0
- package/locales/yo.js +106 -0
- package/locales/zh-cn.d.ts +11 -0
- package/locales/zh-cn.js +14 -0
- package/locales/zh-hk.d.ts +11 -0
- package/locales/zh-hk.js +23 -0
- package/locales/zh-mo.d.ts +11 -0
- package/locales/zh-mo.js +23 -0
- package/locales/zh-tw.d.ts +11 -0
- package/locales/zh-tw.js +23 -0
- package/locales/zh.d.ts +13 -4
- package/locales/zh.js +2 -63
- package/package.json +51 -25
- package/plugins/advancedFormat/index.d.ts +8 -0
- package/plugins/advancedFormat/index.js +20 -0
- package/plugins/advancedParse/index.d.ts +8 -0
- package/plugins/advancedParse/index.js +406 -0
- package/plugins/calendar/index.d.ts +14 -0
- package/plugins/calendar/index.js +33 -0
- package/plugins/dayOfYear/index.d.ts +13 -0
- package/plugins/dayOfYear/index.js +12 -0
- package/plugins/isBetween/index.d.ts +23 -0
- package/plugins/isBetween/index.js +16 -0
- package/plugins/isLeapYear/index.d.ts +12 -0
- package/plugins/isLeapYear/index.js +11 -0
- package/plugins/isSameOrAfter/index.d.ts +12 -0
- package/plugins/isSameOrAfter/index.js +10 -0
- package/plugins/isSameOrBefore/index.d.ts +12 -0
- package/plugins/isSameOrBefore/index.js +10 -0
- package/plugins/isToday/index.d.ts +8 -6
- package/plugins/isToday/index.js +10 -6
- package/plugins/isTomorrow/index.d.ts +12 -0
- package/plugins/isTomorrow/index.js +14 -0
- package/plugins/isYesterday/index.d.ts +12 -0
- package/plugins/isYesterday/index.js +14 -0
- package/plugins/isoWeek/index.d.ts +21 -0
- package/plugins/isoWeek/index.js +240 -0
- package/plugins/locale/index.d.ts +4 -75
- package/plugins/locale/index.js +6 -69
- package/plugins/localeData/index.d.ts +8 -0
- package/plugins/localeData/index.js +148 -0
- package/plugins/localizedFormat/index.d.ts +8 -0
- package/plugins/localizedFormat/index.js +88 -0
- package/plugins/localizedParse/index.d.ts +8 -0
- package/plugins/localizedParse/index.js +199 -0
- package/plugins/minMax/index.d.ts +13 -0
- package/plugins/minMax/index.js +22 -0
- package/plugins/objectSupport/index.d.ts +8 -0
- package/plugins/objectSupport/index.js +104 -0
- package/plugins/pluralGetSet/index.d.ts +20 -0
- package/plugins/pluralGetSet/index.js +16 -0
- package/plugins/quarterOfYear/index.d.ts +16 -0
- package/plugins/quarterOfYear/index.js +58 -0
- package/plugins/relativeTime/index.d.ts +59 -0
- package/plugins/relativeTime/index.js +154 -0
- package/plugins/toArray/index.d.ts +12 -0
- package/plugins/toArray/index.js +18 -0
- package/plugins/toObject/index.d.ts +20 -0
- package/plugins/toObject/index.js +18 -0
- package/plugins/utc/index.d.ts +14 -17
- package/plugins/utc/index.js +191 -37
- package/plugins/week/index.d.ts +21 -0
- package/plugins/week/index.js +360 -0
- package/EsDay-KXQgnL1r.d.ts +0 -89
- package/chunk-MLKGABMK.js +0 -7
- package/chunk-NUV73YDM.js +0 -60
- package/chunk-SQBPUYUY.js +0 -140
- package/plugins/customParseFormat/index.d.ts +0 -5
- package/plugins/customParseFormat/index.js +0 -159
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
//#region src/locales/x-pseudo.ts
|
|
2
|
+
const localeXpseudo = {
|
|
3
|
+
name: "x-pseudo",
|
|
4
|
+
weekdays: [
|
|
5
|
+
"S~úñdá~ý",
|
|
6
|
+
"Mó~ñdáý~",
|
|
7
|
+
"Túé~sdáý~",
|
|
8
|
+
"Wéd~ñésd~áý",
|
|
9
|
+
"T~húrs~dáý",
|
|
10
|
+
"~Fríd~áý",
|
|
11
|
+
"S~átúr~dáý"
|
|
12
|
+
],
|
|
13
|
+
weekdaysShort: [
|
|
14
|
+
"S~úñ",
|
|
15
|
+
"~Móñ",
|
|
16
|
+
"~Túé",
|
|
17
|
+
"~Wéd",
|
|
18
|
+
"~Thú",
|
|
19
|
+
"~Frí",
|
|
20
|
+
"~Sát"
|
|
21
|
+
],
|
|
22
|
+
weekdaysMin: [
|
|
23
|
+
"S~ú",
|
|
24
|
+
"Mó~",
|
|
25
|
+
"Tú",
|
|
26
|
+
"~Wé",
|
|
27
|
+
"T~h",
|
|
28
|
+
"Fr~",
|
|
29
|
+
"Sá"
|
|
30
|
+
],
|
|
31
|
+
months: [
|
|
32
|
+
"J~áñúá~rý",
|
|
33
|
+
"F~ébrú~árý",
|
|
34
|
+
"~Márc~h",
|
|
35
|
+
"Áp~ríl",
|
|
36
|
+
"~Máý",
|
|
37
|
+
"~Júñé~",
|
|
38
|
+
"Júl~ý",
|
|
39
|
+
"Áú~gúst~",
|
|
40
|
+
"Sép~témb~ér",
|
|
41
|
+
"Ó~ctób~ér",
|
|
42
|
+
"Ñ~óvém~bér",
|
|
43
|
+
"~Décé~mbér"
|
|
44
|
+
],
|
|
45
|
+
monthsShort: [
|
|
46
|
+
"J~áñ",
|
|
47
|
+
"~Féb",
|
|
48
|
+
"~Már",
|
|
49
|
+
"~Ápr",
|
|
50
|
+
"~Máý",
|
|
51
|
+
"~Júñ",
|
|
52
|
+
"~Júl",
|
|
53
|
+
"~Áúg",
|
|
54
|
+
"~Sép",
|
|
55
|
+
"~Óct",
|
|
56
|
+
"~Ñóv",
|
|
57
|
+
"~Déc"
|
|
58
|
+
],
|
|
59
|
+
ordinal: (n) => {
|
|
60
|
+
const one = n % 10;
|
|
61
|
+
const output = ~~(n % 100 / 10) === 1 ? "th" : one === 1 ? "st" : one === 2 ? "nd" : one === 3 ? "rd" : "th";
|
|
62
|
+
return `${n}${output}`;
|
|
63
|
+
},
|
|
64
|
+
weekStart: 1,
|
|
65
|
+
yearStart: 4,
|
|
66
|
+
formats: {
|
|
67
|
+
LT: "HH:mm",
|
|
68
|
+
LTS: "HH:mm:ss",
|
|
69
|
+
L: "DD/MM/YYYY",
|
|
70
|
+
LL: "D MMMM YYYY",
|
|
71
|
+
LLL: "D MMMM YYYY HH:mm",
|
|
72
|
+
LLLL: "dddd, D MMMM YYYY HH:mm",
|
|
73
|
+
l: "DD/MM/YYYY",
|
|
74
|
+
ll: "D MMMM YYYY",
|
|
75
|
+
lll: "D MMMM YYYY HH:mm",
|
|
76
|
+
llll: "dddd, D MMMM YYYY HH:mm"
|
|
77
|
+
},
|
|
78
|
+
calendar: {
|
|
79
|
+
sameDay: "[T~ódá~ý át] LT",
|
|
80
|
+
nextDay: "[T~ómó~rró~w át] LT",
|
|
81
|
+
nextWeek: "dddd [át] LT",
|
|
82
|
+
lastDay: "[Ý~ést~érdá~ý át] LT",
|
|
83
|
+
lastWeek: "[L~ást] dddd [át] LT",
|
|
84
|
+
sameElse: "L"
|
|
85
|
+
},
|
|
86
|
+
relativeTime: {
|
|
87
|
+
future: "í~ñ %s",
|
|
88
|
+
past: "%s á~gó",
|
|
89
|
+
s: "á ~féw ~sécó~ñds",
|
|
90
|
+
ss: "%d s~écóñ~ds",
|
|
91
|
+
m: "á ~míñ~úté",
|
|
92
|
+
mm: "%d m~íñú~tés",
|
|
93
|
+
h: "á~ñ hó~úr",
|
|
94
|
+
hh: "%d h~óúrs",
|
|
95
|
+
d: "á ~dáý",
|
|
96
|
+
dd: "%d d~áýs",
|
|
97
|
+
M: "á ~móñ~th",
|
|
98
|
+
MM: "%d m~óñt~hs",
|
|
99
|
+
y: "á ~ýéár",
|
|
100
|
+
yy: "%d ý~éárs"
|
|
101
|
+
},
|
|
102
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
103
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
104
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
var x_pseudo_default = localeXpseudo;
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
export { x_pseudo_default as default };
|
package/locales/yo.d.ts
ADDED
package/locales/yo.js
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
//#region src/locales/yo.ts
|
|
2
|
+
const localeYo = {
|
|
3
|
+
name: "yo",
|
|
4
|
+
weekdays: [
|
|
5
|
+
"Àìkú",
|
|
6
|
+
"Ajé",
|
|
7
|
+
"Ìsẹ́gun",
|
|
8
|
+
"Ọjọ́rú",
|
|
9
|
+
"Ọjọ́bọ",
|
|
10
|
+
"Ẹtì",
|
|
11
|
+
"Àbámẹ́ta"
|
|
12
|
+
],
|
|
13
|
+
weekdaysShort: [
|
|
14
|
+
"Àìk",
|
|
15
|
+
"Ajé",
|
|
16
|
+
"Ìsẹ́",
|
|
17
|
+
"Ọjr",
|
|
18
|
+
"Ọjb",
|
|
19
|
+
"Ẹtì",
|
|
20
|
+
"Àbá"
|
|
21
|
+
],
|
|
22
|
+
weekdaysMin: [
|
|
23
|
+
"Àì",
|
|
24
|
+
"Aj",
|
|
25
|
+
"Ìs",
|
|
26
|
+
"Ọr",
|
|
27
|
+
"Ọb",
|
|
28
|
+
"Ẹt",
|
|
29
|
+
"Àb"
|
|
30
|
+
],
|
|
31
|
+
months: [
|
|
32
|
+
"Sẹ́rẹ́",
|
|
33
|
+
"Èrèlè",
|
|
34
|
+
"Ẹrẹ̀nà",
|
|
35
|
+
"Ìgbé",
|
|
36
|
+
"Èbibi",
|
|
37
|
+
"Òkùdu",
|
|
38
|
+
"Agẹmo",
|
|
39
|
+
"Ògún",
|
|
40
|
+
"Owewe",
|
|
41
|
+
"Ọ̀wàrà",
|
|
42
|
+
"Bélú",
|
|
43
|
+
"Ọ̀pẹ̀̀"
|
|
44
|
+
],
|
|
45
|
+
monthsShort: [
|
|
46
|
+
"Sẹ́r",
|
|
47
|
+
"Èrl",
|
|
48
|
+
"Ẹrn",
|
|
49
|
+
"Ìgb",
|
|
50
|
+
"Èbi",
|
|
51
|
+
"Òkù",
|
|
52
|
+
"Agẹ",
|
|
53
|
+
"Ògú",
|
|
54
|
+
"Owe",
|
|
55
|
+
"Ọ̀wà",
|
|
56
|
+
"Bél",
|
|
57
|
+
"Ọ̀pẹ̀̀"
|
|
58
|
+
],
|
|
59
|
+
ordinal: (n) => `ọjọ́ ${n}`,
|
|
60
|
+
weekStart: 1,
|
|
61
|
+
yearStart: 4,
|
|
62
|
+
formats: {
|
|
63
|
+
LT: "h:mm A",
|
|
64
|
+
LTS: "h:mm:ss A",
|
|
65
|
+
L: "DD/MM/YYYY",
|
|
66
|
+
LL: "D MMMM YYYY",
|
|
67
|
+
LLL: "D MMMM YYYY h:mm A",
|
|
68
|
+
LLLL: "dddd, D MMMM YYYY h:mm A",
|
|
69
|
+
l: "DD/MM/YYYY",
|
|
70
|
+
ll: "D MMMM YYYY",
|
|
71
|
+
lll: "D MMMM YYYY h:mm A",
|
|
72
|
+
llll: "dddd, D MMMM YYYY h:mm A"
|
|
73
|
+
},
|
|
74
|
+
calendar: {
|
|
75
|
+
sameDay: "[Ònì ni] LT",
|
|
76
|
+
nextDay: "[Ọ̀la ni] LT",
|
|
77
|
+
nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
|
|
78
|
+
lastDay: "[Àna ni] LT",
|
|
79
|
+
lastWeek: "dddd [Ọsẹ̀ tólọ́] [ni] LT",
|
|
80
|
+
sameElse: "L"
|
|
81
|
+
},
|
|
82
|
+
relativeTime: {
|
|
83
|
+
future: "ní %s",
|
|
84
|
+
past: "%s kọjá",
|
|
85
|
+
s: "ìsẹjú aayá die",
|
|
86
|
+
ss: "aayá %d",
|
|
87
|
+
m: "ìsẹjú kan",
|
|
88
|
+
mm: "ìsẹjú %d",
|
|
89
|
+
h: "wákati kan",
|
|
90
|
+
hh: "wákati %d",
|
|
91
|
+
d: "ọjọ́ kan",
|
|
92
|
+
dd: "ọjọ́ %d",
|
|
93
|
+
M: "osù kan",
|
|
94
|
+
MM: "osù %d",
|
|
95
|
+
y: "ọdún kan",
|
|
96
|
+
yy: "ọdún %d"
|
|
97
|
+
},
|
|
98
|
+
meridiem: (hour, _minute, isLowercase) => {
|
|
99
|
+
const m = hour < 12 ? "AM" : "PM";
|
|
100
|
+
return isLowercase ? m.toLowerCase() : m;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
var yo_default = localeYo;
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
export { yo_default as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../chunks/DqhiVwLi.js";
|
|
2
|
+
import "../chunks/MtjcOKi-.js";
|
|
3
|
+
import { Locale } from "../chunks/St35qgL0.js";
|
|
4
|
+
|
|
5
|
+
//#region src/locales/zh-cn.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Chinese (China) [zh-CN]
|
|
8
|
+
*/
|
|
9
|
+
declare const localeZhCn: Locale;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { localeZhCn as default };
|
package/locales/zh-cn.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../chunks/Y32qdU_5.js";
|
|
2
|
+
import "../chunks/Cb5SvF6r.js";
|
|
3
|
+
import "../chunks/DjY7KvwG.js";
|
|
4
|
+
import "../chunks/tfkJ5D3p.js";
|
|
5
|
+
import { cloneLocale, setLocaleProperty } from "../chunks/CoBtJ4c1.js";
|
|
6
|
+
import { zh_default } from "../chunks/BXRGSAJG.js";
|
|
7
|
+
|
|
8
|
+
//#region src/locales/zh-cn.ts
|
|
9
|
+
const localeZhCn = cloneLocale(zh_default);
|
|
10
|
+
setLocaleProperty(localeZhCn, "name", "zh-CN");
|
|
11
|
+
var zh_cn_default = localeZhCn;
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { zh_cn_default as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../chunks/DqhiVwLi.js";
|
|
2
|
+
import "../chunks/MtjcOKi-.js";
|
|
3
|
+
import { Locale } from "../chunks/St35qgL0.js";
|
|
4
|
+
|
|
5
|
+
//#region src/locales/zh-hk.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Chinese (Hong Kong) [zh-HK]
|
|
8
|
+
*/
|
|
9
|
+
declare const localeZhHk: Locale;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { localeZhHk as default };
|
package/locales/zh-hk.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "../chunks/Y32qdU_5.js";
|
|
2
|
+
import "../chunks/Cb5SvF6r.js";
|
|
3
|
+
import "../chunks/DjY7KvwG.js";
|
|
4
|
+
import "../chunks/tfkJ5D3p.js";
|
|
5
|
+
import { cloneLocale, setLocaleProperty } from "../chunks/CoBtJ4c1.js";
|
|
6
|
+
import { zh_default } from "../chunks/BXRGSAJG.js";
|
|
7
|
+
|
|
8
|
+
//#region src/locales/zh-hk.ts
|
|
9
|
+
const calendar = {
|
|
10
|
+
sameDay: "[今天]LT",
|
|
11
|
+
nextDay: "[明天]LT",
|
|
12
|
+
nextWeek: "[下]ddddLT",
|
|
13
|
+
lastDay: "[昨天]LT",
|
|
14
|
+
lastWeek: "[上]ddddLT",
|
|
15
|
+
sameElse: "L"
|
|
16
|
+
};
|
|
17
|
+
const localeZhHk = cloneLocale(zh_default);
|
|
18
|
+
setLocaleProperty(localeZhHk, "name", "zh-HK");
|
|
19
|
+
setLocaleProperty(localeZhHk, "calendar", calendar);
|
|
20
|
+
var zh_hk_default = localeZhHk;
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { zh_hk_default as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../chunks/DqhiVwLi.js";
|
|
2
|
+
import "../chunks/MtjcOKi-.js";
|
|
3
|
+
import { Locale } from "../chunks/St35qgL0.js";
|
|
4
|
+
|
|
5
|
+
//#region src/locales/zh-mo.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Chinese (Macau) [zh-MO]
|
|
8
|
+
*/
|
|
9
|
+
declare const localeZhHk: Locale;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { localeZhHk as default };
|
package/locales/zh-mo.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "../chunks/Y32qdU_5.js";
|
|
2
|
+
import "../chunks/Cb5SvF6r.js";
|
|
3
|
+
import "../chunks/DjY7KvwG.js";
|
|
4
|
+
import "../chunks/tfkJ5D3p.js";
|
|
5
|
+
import { cloneLocale, setLocaleProperty } from "../chunks/CoBtJ4c1.js";
|
|
6
|
+
import { zh_default } from "../chunks/BXRGSAJG.js";
|
|
7
|
+
|
|
8
|
+
//#region src/locales/zh-mo.ts
|
|
9
|
+
const calendar = {
|
|
10
|
+
sameDay: "[今天]LT",
|
|
11
|
+
nextDay: "[明天]LT",
|
|
12
|
+
nextWeek: "[下]ddddLT",
|
|
13
|
+
lastDay: "[昨天]LT",
|
|
14
|
+
lastWeek: "[上]ddddLT",
|
|
15
|
+
sameElse: "L"
|
|
16
|
+
};
|
|
17
|
+
const localeZhHk = cloneLocale(zh_default);
|
|
18
|
+
setLocaleProperty(localeZhHk, "name", "zh-MO");
|
|
19
|
+
setLocaleProperty(localeZhHk, "calendar", calendar);
|
|
20
|
+
var zh_mo_default = localeZhHk;
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { zh_mo_default as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../chunks/DqhiVwLi.js";
|
|
2
|
+
import "../chunks/MtjcOKi-.js";
|
|
3
|
+
import { Locale } from "../chunks/St35qgL0.js";
|
|
4
|
+
|
|
5
|
+
//#region src/locales/zh-tw.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Chinese (Taiwan) [zh-TW]
|
|
8
|
+
*/
|
|
9
|
+
declare const localeZhTw: Locale;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { localeZhTw as default };
|
package/locales/zh-tw.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "../chunks/Y32qdU_5.js";
|
|
2
|
+
import "../chunks/Cb5SvF6r.js";
|
|
3
|
+
import "../chunks/DjY7KvwG.js";
|
|
4
|
+
import "../chunks/tfkJ5D3p.js";
|
|
5
|
+
import { cloneLocale, setLocaleProperty } from "../chunks/CoBtJ4c1.js";
|
|
6
|
+
import { zh_default } from "../chunks/BXRGSAJG.js";
|
|
7
|
+
|
|
8
|
+
//#region src/locales/zh-tw.ts
|
|
9
|
+
const calendar = {
|
|
10
|
+
sameDay: "[今天] LT",
|
|
11
|
+
nextDay: "[明天] LT",
|
|
12
|
+
nextWeek: "[下]dddd LT",
|
|
13
|
+
lastDay: "[昨天] LT",
|
|
14
|
+
lastWeek: "[上]dddd LT",
|
|
15
|
+
sameElse: "L"
|
|
16
|
+
};
|
|
17
|
+
const localeZhTw = cloneLocale(zh_default);
|
|
18
|
+
setLocaleProperty(localeZhTw, "name", "zh-TW");
|
|
19
|
+
setLocaleProperty(localeZhTw, "calendar", calendar);
|
|
20
|
+
var zh_tw_default = localeZhTw;
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { zh_tw_default as default };
|
package/locales/zh.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "../chunks/DqhiVwLi.js";
|
|
2
|
+
import "../chunks/MtjcOKi-.js";
|
|
3
|
+
import { Locale } from "../chunks/St35qgL0.js";
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
//#region src/locales/zh.d.ts
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
declare module 'esday' {
|
|
8
|
+
interface EsDay {
|
|
9
|
+
week(): number;
|
|
10
|
+
week(newWeek: number): EsDay;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
declare const localeZh: Readonly<Locale>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { localeZh as default };
|
package/locales/zh.js
CHANGED
|
@@ -1,64 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
var localeZh = {
|
|
3
|
-
name: "zh",
|
|
4
|
-
weekdays: ["\u661F\u671F\u65E5", "\u661F\u671F\u4E00", "\u661F\u671F\u4E8C", "\u661F\u671F\u4E09", "\u661F\u671F\u56DB", "\u661F\u671F\u4E94", "\u661F\u671F\u516D"],
|
|
5
|
-
weekdaysShort: ["\u5468\u65E5", "\u5468\u4E00", "\u5468\u4E8C", "\u5468\u4E09", "\u5468\u56DB", "\u5468\u4E94", "\u5468\u516D"],
|
|
6
|
-
weekdaysMin: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"],
|
|
7
|
-
months: ["\u4E00\u6708", "\u4E8C\u6708", "\u4E09\u6708", "\u56DB\u6708", "\u4E94\u6708", "\u516D\u6708", "\u4E03\u6708", "\u516B\u6708", "\u4E5D\u6708", "\u5341\u6708", "\u5341\u4E00\u6708", "\u5341\u4E8C\u6708"],
|
|
8
|
-
monthsShort: ["1\u6708", "2\u6708", "3\u6708", "4\u6708", "5\u6708", "6\u6708", "7\u6708", "8\u6708", "9\u6708", "10\u6708", "11\u6708", "12\u6708"],
|
|
9
|
-
ordinal: (number, period) => {
|
|
10
|
-
switch (period) {
|
|
11
|
-
case "W":
|
|
12
|
-
return `${number}\u5468`;
|
|
13
|
-
default:
|
|
14
|
-
return `${number}\u65E5`;
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
weekStart: 1,
|
|
18
|
-
yearStart: 4,
|
|
19
|
-
formats: {
|
|
20
|
-
LT: "HH:mm",
|
|
21
|
-
LTS: "HH:mm:ss",
|
|
22
|
-
L: "YYYY/MM/DD",
|
|
23
|
-
LL: "YYYY\u5E74M\u6708D\u65E5",
|
|
24
|
-
LLL: "YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",
|
|
25
|
-
LLLL: "YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",
|
|
26
|
-
l: "YYYY/M/D",
|
|
27
|
-
ll: "YYYY\u5E74M\u6708D\u65E5",
|
|
28
|
-
lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm",
|
|
29
|
-
llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm"
|
|
30
|
-
},
|
|
31
|
-
relativeTime: {
|
|
32
|
-
future: "%s\u540E",
|
|
33
|
-
past: "%s\u524D",
|
|
34
|
-
s: "\u51E0\u79D2",
|
|
35
|
-
m: "1 \u5206\u949F",
|
|
36
|
-
mm: "%d \u5206\u949F",
|
|
37
|
-
h: "1 \u5C0F\u65F6",
|
|
38
|
-
hh: "%d \u5C0F\u65F6",
|
|
39
|
-
d: "1 \u5929",
|
|
40
|
-
dd: "%d \u5929",
|
|
41
|
-
M: "1 \u4E2A\u6708",
|
|
42
|
-
MM: "%d \u4E2A\u6708",
|
|
43
|
-
y: "1 \u5E74",
|
|
44
|
-
yy: "%d \u5E74"
|
|
45
|
-
},
|
|
46
|
-
meridiem: (hour, minute) => {
|
|
47
|
-
const hm = hour * 100 + minute;
|
|
48
|
-
if (hm < 600) {
|
|
49
|
-
return "\u51CC\u6668";
|
|
50
|
-
} else if (hm < 900) {
|
|
51
|
-
return "\u65E9\u4E0A";
|
|
52
|
-
} else if (hm < 1100) {
|
|
53
|
-
return "\u4E0A\u5348";
|
|
54
|
-
} else if (hm < 1300) {
|
|
55
|
-
return "\u4E2D\u5348";
|
|
56
|
-
} else if (hm < 1800) {
|
|
57
|
-
return "\u4E0B\u5348";
|
|
58
|
-
}
|
|
59
|
-
return "\u665A\u4E0A";
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
var zh_default = localeZh;
|
|
1
|
+
import { zh_default } from "../chunks/BXRGSAJG.js";
|
|
63
2
|
|
|
64
|
-
export { zh_default as default };
|
|
3
|
+
export { zh_default as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "esday",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"description": "A simple date library fully written in TypeScript",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/g-mero/esday",
|
|
@@ -12,40 +12,62 @@
|
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/g-mero/esday/issues"
|
|
14
14
|
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"dayjs",
|
|
17
|
+
"date",
|
|
18
|
+
"time",
|
|
19
|
+
"immutable",
|
|
20
|
+
"moment",
|
|
21
|
+
"parse",
|
|
22
|
+
"format",
|
|
23
|
+
"validate",
|
|
24
|
+
"i18n",
|
|
25
|
+
"l10n"
|
|
26
|
+
],
|
|
15
27
|
"sideEffects": false,
|
|
16
28
|
"exports": {
|
|
17
29
|
".": {
|
|
18
30
|
"types": "./index.d.ts",
|
|
19
31
|
"default": "./index.js"
|
|
20
32
|
},
|
|
21
|
-
"
|
|
22
|
-
"types": "
|
|
23
|
-
"default": "
|
|
33
|
+
"./plugins/*": {
|
|
34
|
+
"types": "./plugins/*/index.d.ts",
|
|
35
|
+
"default": "./plugins/*/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./locales/*": {
|
|
38
|
+
"types": "./locales/*.d.ts",
|
|
39
|
+
"default": "./locales/*.js"
|
|
24
40
|
}
|
|
25
41
|
},
|
|
26
|
-
"main": "index.js",
|
|
27
|
-
"module": "index.js",
|
|
28
|
-
"types": "index.d.ts",
|
|
42
|
+
"main": "./index.js",
|
|
43
|
+
"module": "./index.js",
|
|
44
|
+
"types": "./index.d.ts",
|
|
29
45
|
"typesVersions": {},
|
|
30
46
|
"files": [
|
|
31
47
|
"*"
|
|
32
48
|
],
|
|
33
49
|
"devDependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@commitlint/cli": "^19.
|
|
36
|
-
"@commitlint/config-conventional": "^19.
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@vitest/
|
|
40
|
-
"
|
|
50
|
+
"@biomejs/biome": "2.1.2",
|
|
51
|
+
"@commitlint/cli": "^19.8.1",
|
|
52
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
53
|
+
"@playwright/test": "~1.54.2",
|
|
54
|
+
"@types/node": "^24.2.0",
|
|
55
|
+
"@vitest/browser": "3.2.4",
|
|
56
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
57
|
+
"@vitest/ui": "3.2.4",
|
|
58
|
+
"commit-and-tag-version": "^12.5.2",
|
|
41
59
|
"cpy-cli": "^5.0.0",
|
|
42
|
-
"
|
|
43
|
-
"eslint": "^9",
|
|
60
|
+
"dompurify": "^3.2.6",
|
|
44
61
|
"husky": "^9.1.7",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
62
|
+
"jsdom": "^26.1.0",
|
|
63
|
+
"marked": "^16.1.2",
|
|
64
|
+
"moment": "^2.30.1",
|
|
65
|
+
"playwright": "~1.54.2",
|
|
66
|
+
"tsdown": "^0.13.3",
|
|
67
|
+
"typescript": "^5.9.2",
|
|
68
|
+
"ultracite": "5.1.2",
|
|
69
|
+
"vite": "^7.0.6",
|
|
70
|
+
"vitest": "3.2.4"
|
|
49
71
|
},
|
|
50
72
|
"commit-and-tag-version": {
|
|
51
73
|
"packageFiles": [
|
|
@@ -62,17 +84,21 @@
|
|
|
62
84
|
]
|
|
63
85
|
},
|
|
64
86
|
"scripts": {
|
|
65
|
-
"lint": "pnpm exec
|
|
66
|
-
"lint:fix": "pnpm exec
|
|
67
|
-
"build": "
|
|
87
|
+
"lint": "pnpm exec biome check .",
|
|
88
|
+
"lint:fix": "pnpm exec biome check --write .",
|
|
89
|
+
"build": "tsdown",
|
|
90
|
+
"build:ghpages": "node ./scripts/gh-pages/create-gh-pages.js",
|
|
68
91
|
"type-check": "tsc --noEmit --skipLibCheck",
|
|
69
92
|
"test": "vitest",
|
|
70
93
|
"test:ui": "vitest --ui --api 9527",
|
|
71
|
-
"test:run": "vitest run",
|
|
94
|
+
"test:run": "vitest --run",
|
|
95
|
+
"test:run:tz1": "TZ=Pacific/Auckland vitest --run",
|
|
96
|
+
"test:run:tz2": "TZ=Asia/Kathmandu vitest --run",
|
|
97
|
+
"test:run-browser": "vitest --run --browser.enabled --testTimeout=30000",
|
|
72
98
|
"test:coverage": "vitest run --coverage",
|
|
73
99
|
"release": "commit-and-tag-version -i CHANGELOG.md --same-file",
|
|
74
100
|
"lint-commits": "commitlint --from b4c0a8614dd7d9997 --to HEAD --verbose",
|
|
75
|
-
"copypkg": "cpy package.json dist/ && cpy README.md dist/ ",
|
|
101
|
+
"copypkg": "cpy package.json dist/ && cpy README.md dist/ && cpy CHANGELOG.md dist/",
|
|
76
102
|
"pub": "pnpm build && pnpm copypkg && cd dist && pnpm publish"
|
|
77
103
|
}
|
|
78
104
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { padStart, padZoneStr } from "../../chunks/BRRrAbUl.js";
|
|
2
|
+
|
|
3
|
+
//#region src/plugins/advancedFormat/index.ts
|
|
4
|
+
const advancedFormatPlugin = (_, _dayClass, dayFactory) => {
|
|
5
|
+
const additionalTokens = {
|
|
6
|
+
d: (sourceDate) => sourceDate.day().toString(),
|
|
7
|
+
S: (sourceDate) => padStart(sourceDate.millisecond(), 3, "0").slice(0, 1),
|
|
8
|
+
SS: (sourceDate) => padStart(sourceDate.millisecond(), 3, "0").slice(0, 2),
|
|
9
|
+
ZZ: (sourceDate) => padZoneStr(sourceDate.utcOffset()).replace(":", ""),
|
|
10
|
+
X: (sourceDate) => sourceDate.unix().toString(),
|
|
11
|
+
x: (sourceDate) => sourceDate.valueOf().toString(),
|
|
12
|
+
k: (sourceDate) => (sourceDate.hour() !== 0 ? sourceDate.hour() : 24).toString(),
|
|
13
|
+
kk: (sourceDate) => padStart(sourceDate.hour() !== 0 ? sourceDate.hour() : 24, 2, "0")
|
|
14
|
+
};
|
|
15
|
+
dayFactory.addFormatTokenDefinitions(additionalTokens);
|
|
16
|
+
};
|
|
17
|
+
var advancedFormat_default = advancedFormatPlugin;
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { advancedFormat_default as default };
|