@internationalized/date 3.5.4-nightly.4624 → 3.5.5-nightly.4629
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/dist/BuddhistCalendar.main.js +2 -2
- package/dist/BuddhistCalendar.mjs +2 -2
- package/dist/BuddhistCalendar.module.js +2 -2
- package/dist/CalendarDate.main.js +6 -6
- package/dist/CalendarDate.mjs +6 -6
- package/dist/CalendarDate.module.js +6 -6
- package/dist/DateFormatter.main.js +30 -30
- package/dist/DateFormatter.mjs +30 -30
- package/dist/DateFormatter.module.js +30 -30
- package/dist/EthiopicCalendar.main.js +20 -20
- package/dist/EthiopicCalendar.mjs +20 -20
- package/dist/EthiopicCalendar.module.js +20 -20
- package/dist/GregorianCalendar.main.js +9 -9
- package/dist/GregorianCalendar.mjs +9 -9
- package/dist/GregorianCalendar.module.js +9 -9
- package/dist/HebrewCalendar.main.js +2 -2
- package/dist/HebrewCalendar.mjs +2 -2
- package/dist/HebrewCalendar.module.js +2 -2
- package/dist/IndianCalendar.main.js +2 -2
- package/dist/IndianCalendar.mjs +2 -2
- package/dist/IndianCalendar.module.js +2 -2
- package/dist/IslamicCalendar.main.js +5 -5
- package/dist/IslamicCalendar.mjs +5 -5
- package/dist/IslamicCalendar.module.js +5 -5
- package/dist/JapaneseCalendar.main.js +7 -7
- package/dist/JapaneseCalendar.mjs +7 -7
- package/dist/JapaneseCalendar.module.js +7 -7
- package/dist/PersianCalendar.main.js +2 -2
- package/dist/PersianCalendar.mjs +2 -2
- package/dist/PersianCalendar.module.js +2 -2
- package/dist/TaiwanCalendar.main.js +8 -8
- package/dist/TaiwanCalendar.mjs +8 -8
- package/dist/TaiwanCalendar.module.js +8 -8
- package/dist/conversion.main.js +28 -28
- package/dist/conversion.mjs +28 -28
- package/dist/conversion.module.js +28 -28
- package/dist/createCalendar.main.js +13 -13
- package/dist/createCalendar.mjs +13 -13
- package/dist/createCalendar.module.js +13 -13
- package/dist/manipulation.main.js +26 -26
- package/dist/manipulation.mjs +26 -26
- package/dist/manipulation.module.js +26 -26
- package/dist/queries.main.js +2 -2
- package/dist/queries.mjs +2 -2
- package/dist/queries.module.js +2 -2
- package/dist/string.main.js +19 -19
- package/dist/string.mjs +19 -19
- package/dist/string.module.js +19 -19
- package/dist/weekStartData.main.js +1 -1
- package/dist/weekStartData.mjs +1 -1
- package/dist/weekStartData.module.js +1 -1
- package/package.json +2 -2
|
@@ -61,16 +61,16 @@ function $4db04d1051af0f2f$var$getDaysInMonth(year, month) {
|
|
|
61
61
|
class $4db04d1051af0f2f$export$26ba6eab5e20cd7d {
|
|
62
62
|
fromJulianDay(jd) {
|
|
63
63
|
let [year, month, day] = $4db04d1051af0f2f$var$julianDayToCE($4db04d1051af0f2f$var$ETHIOPIC_EPOCH, jd);
|
|
64
|
-
let era =
|
|
64
|
+
let era = 'AM';
|
|
65
65
|
if (year <= 0) {
|
|
66
|
-
era =
|
|
66
|
+
era = 'AA';
|
|
67
67
|
year += $4db04d1051af0f2f$var$AMETE_MIHRET_DELTA;
|
|
68
68
|
}
|
|
69
69
|
return new (0, $625ad1e1f4c43bc1$exports.CalendarDate)(this, era, year, month, day);
|
|
70
70
|
}
|
|
71
71
|
toJulianDay(date) {
|
|
72
72
|
let year = date.year;
|
|
73
|
-
if (date.era ===
|
|
73
|
+
if (date.era === 'AA') year -= $4db04d1051af0f2f$var$AMETE_MIHRET_DELTA;
|
|
74
74
|
return $4db04d1051af0f2f$var$ceToJulianDay($4db04d1051af0f2f$var$ETHIOPIC_EPOCH, year, date.month, date.day);
|
|
75
75
|
}
|
|
76
76
|
getDaysInMonth(date) {
|
|
@@ -86,27 +86,27 @@ class $4db04d1051af0f2f$export$26ba6eab5e20cd7d {
|
|
|
86
86
|
// 9999-12-31 gregorian is 9992-20-02 ethiopic.
|
|
87
87
|
// Round down to 9991 for the last full year.
|
|
88
88
|
// AA 9999-01-01 ethiopic is 4506-09-30 gregorian.
|
|
89
|
-
return date.era ===
|
|
89
|
+
return date.era === 'AA' ? 9999 : 9991;
|
|
90
90
|
}
|
|
91
91
|
getEras() {
|
|
92
92
|
return [
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
'AA',
|
|
94
|
+
'AM'
|
|
95
95
|
];
|
|
96
96
|
}
|
|
97
97
|
constructor(){
|
|
98
|
-
this.identifier =
|
|
98
|
+
this.identifier = 'ethiopic';
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
class $4db04d1051af0f2f$export$d72e0c37005a4914 extends $4db04d1051af0f2f$export$26ba6eab5e20cd7d {
|
|
102
102
|
fromJulianDay(jd) {
|
|
103
103
|
let [year, month, day] = $4db04d1051af0f2f$var$julianDayToCE($4db04d1051af0f2f$var$ETHIOPIC_EPOCH, jd);
|
|
104
104
|
year += $4db04d1051af0f2f$var$AMETE_MIHRET_DELTA;
|
|
105
|
-
return new (0, $625ad1e1f4c43bc1$exports.CalendarDate)(this,
|
|
105
|
+
return new (0, $625ad1e1f4c43bc1$exports.CalendarDate)(this, 'AA', year, month, day);
|
|
106
106
|
}
|
|
107
107
|
getEras() {
|
|
108
108
|
return [
|
|
109
|
-
|
|
109
|
+
'AA'
|
|
110
110
|
];
|
|
111
111
|
}
|
|
112
112
|
getYearsInEra() {
|
|
@@ -115,54 +115,54 @@ class $4db04d1051af0f2f$export$d72e0c37005a4914 extends $4db04d1051af0f2f$export
|
|
|
115
115
|
}
|
|
116
116
|
constructor(...args){
|
|
117
117
|
super(...args);
|
|
118
|
-
this.identifier =
|
|
118
|
+
this.identifier = 'ethioaa' // also known as 'ethiopic-amete-alem' in ICU
|
|
119
119
|
;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
class $4db04d1051af0f2f$export$fe6243cbe1a4b7c1 extends $4db04d1051af0f2f$export$26ba6eab5e20cd7d {
|
|
123
123
|
fromJulianDay(jd) {
|
|
124
124
|
let [year, month, day] = $4db04d1051af0f2f$var$julianDayToCE($4db04d1051af0f2f$var$COPTIC_EPOCH, jd);
|
|
125
|
-
let era =
|
|
125
|
+
let era = 'CE';
|
|
126
126
|
if (year <= 0) {
|
|
127
|
-
era =
|
|
127
|
+
era = 'BCE';
|
|
128
128
|
year = 1 - year;
|
|
129
129
|
}
|
|
130
130
|
return new (0, $625ad1e1f4c43bc1$exports.CalendarDate)(this, era, year, month, day);
|
|
131
131
|
}
|
|
132
132
|
toJulianDay(date) {
|
|
133
133
|
let year = date.year;
|
|
134
|
-
if (date.era ===
|
|
134
|
+
if (date.era === 'BCE') year = 1 - year;
|
|
135
135
|
return $4db04d1051af0f2f$var$ceToJulianDay($4db04d1051af0f2f$var$COPTIC_EPOCH, year, date.month, date.day);
|
|
136
136
|
}
|
|
137
137
|
getDaysInMonth(date) {
|
|
138
138
|
let year = date.year;
|
|
139
|
-
if (date.era ===
|
|
139
|
+
if (date.era === 'BCE') year = 1 - year;
|
|
140
140
|
return $4db04d1051af0f2f$var$getDaysInMonth(year, date.month);
|
|
141
141
|
}
|
|
142
142
|
isInverseEra(date) {
|
|
143
|
-
return date.era ===
|
|
143
|
+
return date.era === 'BCE';
|
|
144
144
|
}
|
|
145
145
|
balanceDate(date) {
|
|
146
146
|
if (date.year <= 0) {
|
|
147
|
-
date.era = date.era ===
|
|
147
|
+
date.era = date.era === 'BCE' ? 'CE' : 'BCE';
|
|
148
148
|
date.year = 1 - date.year;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
getEras() {
|
|
152
152
|
return [
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
'BCE',
|
|
154
|
+
'CE'
|
|
155
155
|
];
|
|
156
156
|
}
|
|
157
157
|
getYearsInEra(date) {
|
|
158
158
|
// 9999-12-30 gregorian is 9716-02-20 coptic.
|
|
159
159
|
// Round down to 9715 for the last full year.
|
|
160
160
|
// BCE 9999-01-01 coptic is BC 9716-06-15 gregorian.
|
|
161
|
-
return date.era ===
|
|
161
|
+
return date.era === 'BCE' ? 9999 : 9715;
|
|
162
162
|
}
|
|
163
163
|
constructor(...args){
|
|
164
164
|
super(...args);
|
|
165
|
-
this.identifier =
|
|
165
|
+
this.identifier = 'coptic';
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -53,16 +53,16 @@ function $b956b2d7a6cf451f$var$getDaysInMonth(year, month) {
|
|
|
53
53
|
class $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
|
|
54
54
|
fromJulianDay(jd) {
|
|
55
55
|
let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);
|
|
56
|
-
let era =
|
|
56
|
+
let era = 'AM';
|
|
57
57
|
if (year <= 0) {
|
|
58
|
-
era =
|
|
58
|
+
era = 'AA';
|
|
59
59
|
year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
|
|
60
60
|
}
|
|
61
61
|
return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, era, year, month, day);
|
|
62
62
|
}
|
|
63
63
|
toJulianDay(date) {
|
|
64
64
|
let year = date.year;
|
|
65
|
-
if (date.era ===
|
|
65
|
+
if (date.era === 'AA') year -= $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
|
|
66
66
|
return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, year, date.month, date.day);
|
|
67
67
|
}
|
|
68
68
|
getDaysInMonth(date) {
|
|
@@ -78,27 +78,27 @@ class $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
|
|
|
78
78
|
// 9999-12-31 gregorian is 9992-20-02 ethiopic.
|
|
79
79
|
// Round down to 9991 for the last full year.
|
|
80
80
|
// AA 9999-01-01 ethiopic is 4506-09-30 gregorian.
|
|
81
|
-
return date.era ===
|
|
81
|
+
return date.era === 'AA' ? 9999 : 9991;
|
|
82
82
|
}
|
|
83
83
|
getEras() {
|
|
84
84
|
return [
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
'AA',
|
|
86
|
+
'AM'
|
|
87
87
|
];
|
|
88
88
|
}
|
|
89
89
|
constructor(){
|
|
90
|
-
this.identifier =
|
|
90
|
+
this.identifier = 'ethiopic';
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
class $b956b2d7a6cf451f$export$d72e0c37005a4914 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
|
|
94
94
|
fromJulianDay(jd) {
|
|
95
95
|
let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);
|
|
96
96
|
year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
|
|
97
|
-
return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this,
|
|
97
|
+
return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, 'AA', year, month, day);
|
|
98
98
|
}
|
|
99
99
|
getEras() {
|
|
100
100
|
return [
|
|
101
|
-
|
|
101
|
+
'AA'
|
|
102
102
|
];
|
|
103
103
|
}
|
|
104
104
|
getYearsInEra() {
|
|
@@ -107,54 +107,54 @@ class $b956b2d7a6cf451f$export$d72e0c37005a4914 extends $b956b2d7a6cf451f$export
|
|
|
107
107
|
}
|
|
108
108
|
constructor(...args){
|
|
109
109
|
super(...args);
|
|
110
|
-
this.identifier =
|
|
110
|
+
this.identifier = 'ethioaa' // also known as 'ethiopic-amete-alem' in ICU
|
|
111
111
|
;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
class $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
|
|
115
115
|
fromJulianDay(jd) {
|
|
116
116
|
let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$COPTIC_EPOCH, jd);
|
|
117
|
-
let era =
|
|
117
|
+
let era = 'CE';
|
|
118
118
|
if (year <= 0) {
|
|
119
|
-
era =
|
|
119
|
+
era = 'BCE';
|
|
120
120
|
year = 1 - year;
|
|
121
121
|
}
|
|
122
122
|
return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, era, year, month, day);
|
|
123
123
|
}
|
|
124
124
|
toJulianDay(date) {
|
|
125
125
|
let year = date.year;
|
|
126
|
-
if (date.era ===
|
|
126
|
+
if (date.era === 'BCE') year = 1 - year;
|
|
127
127
|
return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$COPTIC_EPOCH, year, date.month, date.day);
|
|
128
128
|
}
|
|
129
129
|
getDaysInMonth(date) {
|
|
130
130
|
let year = date.year;
|
|
131
|
-
if (date.era ===
|
|
131
|
+
if (date.era === 'BCE') year = 1 - year;
|
|
132
132
|
return $b956b2d7a6cf451f$var$getDaysInMonth(year, date.month);
|
|
133
133
|
}
|
|
134
134
|
isInverseEra(date) {
|
|
135
|
-
return date.era ===
|
|
135
|
+
return date.era === 'BCE';
|
|
136
136
|
}
|
|
137
137
|
balanceDate(date) {
|
|
138
138
|
if (date.year <= 0) {
|
|
139
|
-
date.era = date.era ===
|
|
139
|
+
date.era = date.era === 'BCE' ? 'CE' : 'BCE';
|
|
140
140
|
date.year = 1 - date.year;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
getEras() {
|
|
144
144
|
return [
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
'BCE',
|
|
146
|
+
'CE'
|
|
147
147
|
];
|
|
148
148
|
}
|
|
149
149
|
getYearsInEra(date) {
|
|
150
150
|
// 9999-12-30 gregorian is 9716-02-20 coptic.
|
|
151
151
|
// Round down to 9715 for the last full year.
|
|
152
152
|
// BCE 9999-01-01 coptic is BC 9716-06-15 gregorian.
|
|
153
|
-
return date.era ===
|
|
153
|
+
return date.era === 'BCE' ? 9999 : 9715;
|
|
154
154
|
}
|
|
155
155
|
constructor(...args){
|
|
156
156
|
super(...args);
|
|
157
|
-
this.identifier =
|
|
157
|
+
this.identifier = 'coptic';
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
|
|
@@ -53,16 +53,16 @@ function $b956b2d7a6cf451f$var$getDaysInMonth(year, month) {
|
|
|
53
53
|
class $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
|
|
54
54
|
fromJulianDay(jd) {
|
|
55
55
|
let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);
|
|
56
|
-
let era =
|
|
56
|
+
let era = 'AM';
|
|
57
57
|
if (year <= 0) {
|
|
58
|
-
era =
|
|
58
|
+
era = 'AA';
|
|
59
59
|
year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
|
|
60
60
|
}
|
|
61
61
|
return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, era, year, month, day);
|
|
62
62
|
}
|
|
63
63
|
toJulianDay(date) {
|
|
64
64
|
let year = date.year;
|
|
65
|
-
if (date.era ===
|
|
65
|
+
if (date.era === 'AA') year -= $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
|
|
66
66
|
return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, year, date.month, date.day);
|
|
67
67
|
}
|
|
68
68
|
getDaysInMonth(date) {
|
|
@@ -78,27 +78,27 @@ class $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
|
|
|
78
78
|
// 9999-12-31 gregorian is 9992-20-02 ethiopic.
|
|
79
79
|
// Round down to 9991 for the last full year.
|
|
80
80
|
// AA 9999-01-01 ethiopic is 4506-09-30 gregorian.
|
|
81
|
-
return date.era ===
|
|
81
|
+
return date.era === 'AA' ? 9999 : 9991;
|
|
82
82
|
}
|
|
83
83
|
getEras() {
|
|
84
84
|
return [
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
'AA',
|
|
86
|
+
'AM'
|
|
87
87
|
];
|
|
88
88
|
}
|
|
89
89
|
constructor(){
|
|
90
|
-
this.identifier =
|
|
90
|
+
this.identifier = 'ethiopic';
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
class $b956b2d7a6cf451f$export$d72e0c37005a4914 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
|
|
94
94
|
fromJulianDay(jd) {
|
|
95
95
|
let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);
|
|
96
96
|
year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
|
|
97
|
-
return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this,
|
|
97
|
+
return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, 'AA', year, month, day);
|
|
98
98
|
}
|
|
99
99
|
getEras() {
|
|
100
100
|
return [
|
|
101
|
-
|
|
101
|
+
'AA'
|
|
102
102
|
];
|
|
103
103
|
}
|
|
104
104
|
getYearsInEra() {
|
|
@@ -107,54 +107,54 @@ class $b956b2d7a6cf451f$export$d72e0c37005a4914 extends $b956b2d7a6cf451f$export
|
|
|
107
107
|
}
|
|
108
108
|
constructor(...args){
|
|
109
109
|
super(...args);
|
|
110
|
-
this.identifier =
|
|
110
|
+
this.identifier = 'ethioaa' // also known as 'ethiopic-amete-alem' in ICU
|
|
111
111
|
;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
class $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
|
|
115
115
|
fromJulianDay(jd) {
|
|
116
116
|
let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$COPTIC_EPOCH, jd);
|
|
117
|
-
let era =
|
|
117
|
+
let era = 'CE';
|
|
118
118
|
if (year <= 0) {
|
|
119
|
-
era =
|
|
119
|
+
era = 'BCE';
|
|
120
120
|
year = 1 - year;
|
|
121
121
|
}
|
|
122
122
|
return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(this, era, year, month, day);
|
|
123
123
|
}
|
|
124
124
|
toJulianDay(date) {
|
|
125
125
|
let year = date.year;
|
|
126
|
-
if (date.era ===
|
|
126
|
+
if (date.era === 'BCE') year = 1 - year;
|
|
127
127
|
return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$COPTIC_EPOCH, year, date.month, date.day);
|
|
128
128
|
}
|
|
129
129
|
getDaysInMonth(date) {
|
|
130
130
|
let year = date.year;
|
|
131
|
-
if (date.era ===
|
|
131
|
+
if (date.era === 'BCE') year = 1 - year;
|
|
132
132
|
return $b956b2d7a6cf451f$var$getDaysInMonth(year, date.month);
|
|
133
133
|
}
|
|
134
134
|
isInverseEra(date) {
|
|
135
|
-
return date.era ===
|
|
135
|
+
return date.era === 'BCE';
|
|
136
136
|
}
|
|
137
137
|
balanceDate(date) {
|
|
138
138
|
if (date.year <= 0) {
|
|
139
|
-
date.era = date.era ===
|
|
139
|
+
date.era = date.era === 'BCE' ? 'CE' : 'BCE';
|
|
140
140
|
date.year = 1 - date.year;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
getEras() {
|
|
144
144
|
return [
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
'BCE',
|
|
146
|
+
'CE'
|
|
147
147
|
];
|
|
148
148
|
}
|
|
149
149
|
getYearsInEra(date) {
|
|
150
150
|
// 9999-12-30 gregorian is 9716-02-20 coptic.
|
|
151
151
|
// Round down to 9715 for the last full year.
|
|
152
152
|
// BCE 9999-01-01 coptic is BC 9716-06-15 gregorian.
|
|
153
|
-
return date.era ===
|
|
153
|
+
return date.era === 'BCE' ? 9999 : 9715;
|
|
154
154
|
}
|
|
155
155
|
constructor(...args){
|
|
156
156
|
super(...args);
|
|
157
|
-
this.identifier =
|
|
157
|
+
this.identifier = 'coptic';
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
|
|
@@ -38,12 +38,12 @@ function $af14c9812fdceb33$export$553d7fa8e3805fc0(year) {
|
|
|
38
38
|
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
39
39
|
}
|
|
40
40
|
function $af14c9812fdceb33$export$c36e0ecb2d4fa69d(era, year) {
|
|
41
|
-
return era ===
|
|
41
|
+
return era === 'BC' ? 1 - year : year;
|
|
42
42
|
}
|
|
43
43
|
function $af14c9812fdceb33$export$4475b7e617eb123c(year) {
|
|
44
|
-
let era =
|
|
44
|
+
let era = 'AD';
|
|
45
45
|
if (year <= 0) {
|
|
46
|
-
era =
|
|
46
|
+
era = 'BC';
|
|
47
47
|
year = 1 - year;
|
|
48
48
|
}
|
|
49
49
|
return [
|
|
@@ -106,7 +106,7 @@ class $af14c9812fdceb33$export$80ee6245ec4f29ec {
|
|
|
106
106
|
return $af14c9812fdceb33$export$f297eb839006d339(date.era, date.year, date.month, date.day);
|
|
107
107
|
}
|
|
108
108
|
getDaysInMonth(date) {
|
|
109
|
-
return $af14c9812fdceb33$var$daysInMonth[$af14c9812fdceb33$export$553d7fa8e3805fc0(date.year) ?
|
|
109
|
+
return $af14c9812fdceb33$var$daysInMonth[$af14c9812fdceb33$export$553d7fa8e3805fc0(date.year) ? 'leapyear' : 'standard'][date.month - 1];
|
|
110
110
|
}
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
112
112
|
getMonthsInYear(date) {
|
|
@@ -121,21 +121,21 @@ class $af14c9812fdceb33$export$80ee6245ec4f29ec {
|
|
|
121
121
|
}
|
|
122
122
|
getEras() {
|
|
123
123
|
return [
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
'BC',
|
|
125
|
+
'AD'
|
|
126
126
|
];
|
|
127
127
|
}
|
|
128
128
|
isInverseEra(date) {
|
|
129
|
-
return date.era ===
|
|
129
|
+
return date.era === 'BC';
|
|
130
130
|
}
|
|
131
131
|
balanceDate(date) {
|
|
132
132
|
if (date.year <= 0) {
|
|
133
|
-
date.era = date.era ===
|
|
133
|
+
date.era = date.era === 'BC' ? 'AD' : 'BC';
|
|
134
134
|
date.year = 1 - date.year;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
constructor(){
|
|
138
|
-
this.identifier =
|
|
138
|
+
this.identifier = 'gregory';
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
@@ -28,12 +28,12 @@ function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
|
|
|
28
28
|
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
29
29
|
}
|
|
30
30
|
function $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year) {
|
|
31
|
-
return era ===
|
|
31
|
+
return era === 'BC' ? 1 - year : year;
|
|
32
32
|
}
|
|
33
33
|
function $3b62074eb05584b2$export$4475b7e617eb123c(year) {
|
|
34
|
-
let era =
|
|
34
|
+
let era = 'AD';
|
|
35
35
|
if (year <= 0) {
|
|
36
|
-
era =
|
|
36
|
+
era = 'BC';
|
|
37
37
|
year = 1 - year;
|
|
38
38
|
}
|
|
39
39
|
return [
|
|
@@ -96,7 +96,7 @@ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
|
|
|
96
96
|
return $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, date.month, date.day);
|
|
97
97
|
}
|
|
98
98
|
getDaysInMonth(date) {
|
|
99
|
-
return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ?
|
|
99
|
+
return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 'leapyear' : 'standard'][date.month - 1];
|
|
100
100
|
}
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
102
102
|
getMonthsInYear(date) {
|
|
@@ -111,21 +111,21 @@ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
|
|
|
111
111
|
}
|
|
112
112
|
getEras() {
|
|
113
113
|
return [
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
'BC',
|
|
115
|
+
'AD'
|
|
116
116
|
];
|
|
117
117
|
}
|
|
118
118
|
isInverseEra(date) {
|
|
119
|
-
return date.era ===
|
|
119
|
+
return date.era === 'BC';
|
|
120
120
|
}
|
|
121
121
|
balanceDate(date) {
|
|
122
122
|
if (date.year <= 0) {
|
|
123
|
-
date.era = date.era ===
|
|
123
|
+
date.era = date.era === 'BC' ? 'AD' : 'BC';
|
|
124
124
|
date.year = 1 - date.year;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
constructor(){
|
|
128
|
-
this.identifier =
|
|
128
|
+
this.identifier = 'gregory';
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
@@ -28,12 +28,12 @@ function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
|
|
|
28
28
|
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
29
29
|
}
|
|
30
30
|
function $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year) {
|
|
31
|
-
return era ===
|
|
31
|
+
return era === 'BC' ? 1 - year : year;
|
|
32
32
|
}
|
|
33
33
|
function $3b62074eb05584b2$export$4475b7e617eb123c(year) {
|
|
34
|
-
let era =
|
|
34
|
+
let era = 'AD';
|
|
35
35
|
if (year <= 0) {
|
|
36
|
-
era =
|
|
36
|
+
era = 'BC';
|
|
37
37
|
year = 1 - year;
|
|
38
38
|
}
|
|
39
39
|
return [
|
|
@@ -96,7 +96,7 @@ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
|
|
|
96
96
|
return $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, date.month, date.day);
|
|
97
97
|
}
|
|
98
98
|
getDaysInMonth(date) {
|
|
99
|
-
return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ?
|
|
99
|
+
return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 'leapyear' : 'standard'][date.month - 1];
|
|
100
100
|
}
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
102
102
|
getMonthsInYear(date) {
|
|
@@ -111,21 +111,21 @@ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
|
|
|
111
111
|
}
|
|
112
112
|
getEras() {
|
|
113
113
|
return [
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
'BC',
|
|
115
|
+
'AD'
|
|
116
116
|
];
|
|
117
117
|
}
|
|
118
118
|
isInverseEra(date) {
|
|
119
|
-
return date.era ===
|
|
119
|
+
return date.era === 'BC';
|
|
120
120
|
}
|
|
121
121
|
balanceDate(date) {
|
|
122
122
|
if (date.year <= 0) {
|
|
123
|
-
date.era = date.era ===
|
|
123
|
+
date.era = date.era === 'BC' ? 'AD' : 'BC';
|
|
124
124
|
date.year = 1 - date.year;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
constructor(){
|
|
128
|
-
this.identifier =
|
|
128
|
+
this.identifier = 'gregory';
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
@@ -130,7 +130,7 @@ class $0f5324ee3bdd9396$export$ca405048b8fb5af {
|
|
|
130
130
|
}
|
|
131
131
|
getEras() {
|
|
132
132
|
return [
|
|
133
|
-
|
|
133
|
+
'AM'
|
|
134
134
|
];
|
|
135
135
|
}
|
|
136
136
|
balanceYearMonth(date, previousDate) {
|
|
@@ -141,7 +141,7 @@ class $0f5324ee3bdd9396$export$ca405048b8fb5af {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
constructor(){
|
|
144
|
-
this.identifier =
|
|
144
|
+
this.identifier = 'hebrew';
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
|
package/dist/HebrewCalendar.mjs
CHANGED
|
@@ -124,7 +124,7 @@ class $7c5f6fbf42389787$export$ca405048b8fb5af {
|
|
|
124
124
|
}
|
|
125
125
|
getEras() {
|
|
126
126
|
return [
|
|
127
|
-
|
|
127
|
+
'AM'
|
|
128
128
|
];
|
|
129
129
|
}
|
|
130
130
|
balanceYearMonth(date, previousDate) {
|
|
@@ -135,7 +135,7 @@ class $7c5f6fbf42389787$export$ca405048b8fb5af {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
constructor(){
|
|
138
|
-
this.identifier =
|
|
138
|
+
this.identifier = 'hebrew';
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
@@ -124,7 +124,7 @@ class $7c5f6fbf42389787$export$ca405048b8fb5af {
|
|
|
124
124
|
}
|
|
125
125
|
getEras() {
|
|
126
126
|
return [
|
|
127
|
-
|
|
127
|
+
'AM'
|
|
128
128
|
];
|
|
129
129
|
}
|
|
130
130
|
balanceYearMonth(date, previousDate) {
|
|
@@ -135,7 +135,7 @@ class $7c5f6fbf42389787$export$ca405048b8fb5af {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
constructor(){
|
|
138
|
-
this.identifier =
|
|
138
|
+
this.identifier = 'hebrew';
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
@@ -93,13 +93,13 @@ class $5f1dfa5c67609fe6$export$39f31c639fa15726 extends (0, $af14c9812fdceb33$ex
|
|
|
93
93
|
}
|
|
94
94
|
getEras() {
|
|
95
95
|
return [
|
|
96
|
-
|
|
96
|
+
'saka'
|
|
97
97
|
];
|
|
98
98
|
}
|
|
99
99
|
balanceDate() {}
|
|
100
100
|
constructor(...args){
|
|
101
101
|
super(...args);
|
|
102
|
-
this.identifier =
|
|
102
|
+
this.identifier = 'indian';
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
package/dist/IndianCalendar.mjs
CHANGED
|
@@ -87,13 +87,13 @@ class $82c358003bdda0a8$export$39f31c639fa15726 extends (0, $3b62074eb05584b2$ex
|
|
|
87
87
|
}
|
|
88
88
|
getEras() {
|
|
89
89
|
return [
|
|
90
|
-
|
|
90
|
+
'saka'
|
|
91
91
|
];
|
|
92
92
|
}
|
|
93
93
|
balanceDate() {}
|
|
94
94
|
constructor(...args){
|
|
95
95
|
super(...args);
|
|
96
|
-
this.identifier =
|
|
96
|
+
this.identifier = 'indian';
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -87,13 +87,13 @@ class $82c358003bdda0a8$export$39f31c639fa15726 extends (0, $3b62074eb05584b2$ex
|
|
|
87
87
|
}
|
|
88
88
|
getEras() {
|
|
89
89
|
return [
|
|
90
|
-
|
|
90
|
+
'saka'
|
|
91
91
|
];
|
|
92
92
|
}
|
|
93
93
|
balanceDate() {}
|
|
94
94
|
constructor(...args){
|
|
95
95
|
super(...args);
|
|
96
|
-
this.identifier =
|
|
96
|
+
this.identifier = 'indian';
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -62,11 +62,11 @@ class $ecb2c4cc8c9aae25$export$2066795aadd37bfc {
|
|
|
62
62
|
}
|
|
63
63
|
getEras() {
|
|
64
64
|
return [
|
|
65
|
-
|
|
65
|
+
'AH'
|
|
66
66
|
];
|
|
67
67
|
}
|
|
68
68
|
constructor(){
|
|
69
|
-
this.identifier =
|
|
69
|
+
this.identifier = 'islamic-civil';
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
class $ecb2c4cc8c9aae25$export$37f0887f2f9d22f7 extends $ecb2c4cc8c9aae25$export$2066795aadd37bfc {
|
|
@@ -78,11 +78,11 @@ class $ecb2c4cc8c9aae25$export$37f0887f2f9d22f7 extends $ecb2c4cc8c9aae25$export
|
|
|
78
78
|
}
|
|
79
79
|
constructor(...args){
|
|
80
80
|
super(...args);
|
|
81
|
-
this.identifier =
|
|
81
|
+
this.identifier = 'islamic-tbla';
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
// Generated by scripts/generate-umalqura.js
|
|
85
|
-
const $ecb2c4cc8c9aae25$var$UMALQURA_DATA =
|
|
85
|
+
const $ecb2c4cc8c9aae25$var$UMALQURA_DATA = 'qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=';
|
|
86
86
|
let $ecb2c4cc8c9aae25$var$UMALQURA_MONTHLENGTH;
|
|
87
87
|
let $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE;
|
|
88
88
|
function $ecb2c4cc8c9aae25$var$umalquraYearStart(year) {
|
|
@@ -147,7 +147,7 @@ class $ecb2c4cc8c9aae25$export$5baab4758c231076 extends $ecb2c4cc8c9aae25$export
|
|
|
147
147
|
}
|
|
148
148
|
constructor(){
|
|
149
149
|
super();
|
|
150
|
-
this.identifier =
|
|
150
|
+
this.identifier = 'islamic-umalqura';
|
|
151
151
|
if (!$ecb2c4cc8c9aae25$var$UMALQURA_MONTHLENGTH) $ecb2c4cc8c9aae25$var$UMALQURA_MONTHLENGTH = new Uint16Array(Uint8Array.from(atob($ecb2c4cc8c9aae25$var$UMALQURA_DATA), (c)=>c.charCodeAt(0)).buffer);
|
|
152
152
|
if (!$ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE) {
|
|
153
153
|
$ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START_TABLE = new Uint32Array($ecb2c4cc8c9aae25$var$UMALQURA_YEAR_END - $ecb2c4cc8c9aae25$var$UMALQURA_YEAR_START + 1);
|