Skip to content

Commit afbffdd

Browse files
committed
Make all dates equivalent to 2000-01-01
1 parent 9936de6 commit afbffdd

File tree

6 files changed

+84
-90
lines changed

6 files changed

+84
-90
lines changed

test/intl402/Temporal/PlainDate/prototype/add/month-boundary-non-iso.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33

44
/*---
55
esid: sec-temporal.plaindate.prototype.add
6-
description: Addition around end of month in the Buddhist calendar
6+
description: Addition around end of month in non-ISO calendars
77
features: [Temporal, Intl.Era-monthcode]
88
includes: [temporalHelpers.js]
99
---*/
1010

11-
const calendar = "buddhist";
1211
const options = { overflow: "reject" };
1312

1413
const months1 = new Temporal.Duration(0, 1);
@@ -27,7 +26,7 @@ const durations = [
2726
];
2827

2928
const datesBuddhist = [
30-
Temporal.PlainDate.from({ year: 2555, monthCode: "M12", day: 1, calendar: "buddhist" }, options),
29+
Temporal.PlainDate.from({ year: 2543, monthCode: "M01", day: 1, calendar: "buddhist" }, options),
3130
];
3231

3332
const datesChinese = [
@@ -39,7 +38,7 @@ const datesChinese = [
3938
];
4039

4140
const datesCoptic = [
42-
Temporal.PlainDate.from({ year: 1716, monthCode: "M12", day: 1, calendar: "coptic" }, options),
41+
Temporal.PlainDate.from({ year: 1716, monthCode: "M04", day: 22, calendar: "coptic" }, options),
4342
];
4443

4544
const datesDangi = [
@@ -51,47 +50,47 @@ const datesDangi = [
5150
];
5251

5352
const datesEthioaa = [
54-
Temporal.PlainDate.from({ year: 7492, monthCode: "M12", day: 1, calendar: "ethioaa" }, options),
53+
Temporal.PlainDate.from({ year: 7492, monthCode: "M04", day: 22, calendar: "ethioaa" }, options),
5554
];
5655

5756
const datesEthiopic = [
58-
Temporal.PlainDate.from({ year: 2000, monthCode: "M12", day: 1, calendar: "ethiopic" }, options),
57+
Temporal.PlainDate.from({ year: 1992, monthCode: "M04", day: 22, calendar: "ethiopic" }, options),
5958
];
6059

6160
const datesGregory = [
62-
Temporal.PlainDate.from({ year: 2000, monthCode: "M12", day: 1, calendar: "gregory" }, options),
61+
Temporal.PlainDate.from({ year: 2000, monthCode: "M01", day: 1, calendar: "gregory" }, options),
6362
];
6463

6564
const datesHebrew = [
66-
Temporal.PlainDate.from({ year: 5761, monthCode: "M12", day: 1, calendar: "hebrew" }, options),
65+
Temporal.PlainDate.from({ year: 5760, monthCode: "M04", day: 23, calendar: "hebrew" }, options),
6766
];
6867

6968
const datesIndian = [
70-
Temporal.PlainDate.from({ year: 1919, monthCode: "M12", day: 1, calendar: "indian" }),
69+
Temporal.PlainDate.from({ year: 1921, monthCode: "M10", day: 11, calendar: "indian" }, options),
7170
];
7271

7372
const datesIslamicCivil = [
74-
Temporal.PlainDate.from({ year: 1420, monthCode: "M12", day: 1, calendar: "islamic-civil" }),
73+
Temporal.PlainDate.from({ year: 1420, monthCode: "M09", day: 24, calendar: "islamic-civil" }, options),
7574
];
7675

7776
const datesIslamicTbla = [
78-
Temporal.PlainDate.from({ year: 1420, monthCode: "M12", day: 1, calendar: "islamic-tbla" }),
77+
Temporal.PlainDate.from({ year: 1420, monthCode: "M09", day: 25, calendar: "islamic-tbla" }, options),
7978
];
8079

8180
const datesIslamicUmalqura = [
82-
Temporal.PlainDate.from({ year: 1420, monthCode: "M12", day: 1, calendar: "islamic-umalqura" }),
81+
Temporal.PlainDate.from({ year: 1420, monthCode: "M09", day: 24, calendar: "islamic-umalqura" }, options),
8382
];
8483

8584
const datesJapanese = [
86-
Temporal.PlainDate.from({ year: 2000, monthCode: "M12", day: 1, calendar: "japanese" }),
85+
Temporal.PlainDate.from({ year: 2000, monthCode: "M01", day: 1, calendar: "japanese" }),
8786
];
8887

8988
const datesPersian = [
90-
Temporal.PlainDate.from({ year: 1378, monthCode: "M01", day: 1, calendar: "persian" }),
89+
Temporal.PlainDate.from({ year: 1378, monthCode: "M10", day: 11, calendar: "persian" }, options),
9190
];
9291

9392
const datesRoc = [
94-
Temporal.PlainDate.from({ year: 90, monthCode: "M01", day: 1, calendar: "roc" }),
93+
Temporal.PlainDate.from({ year: 89, monthCode: "M01", day: 1, calendar: "roc" }, options),
9594
];
9695

9796
const dates = [datesBuddhist, datesChinese, datesCoptic, datesDangi, datesEthioaa, datesEthiopic, datesGregory,

test/intl402/Temporal/PlainDate/prototype/subtract/month-boundary-non-iso.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33

44
/*---
55
esid: sec-temporal.plaindate.prototype.subtract
6-
description: Addition around end of month in the Buddhist calendar
6+
description: Addition around end of month in non-ISO calendars
77
features: [Temporal, Intl.Era-monthcode]
88
includes: [temporalHelpers.js]
99
---*/
1010

11-
const calendar = "buddhist";
1211
const options = { overflow: "reject" };
1312

1413
const months1 = new Temporal.Duration(0, -1);
@@ -27,7 +26,7 @@ const durations = [
2726
];
2827

2928
const datesBuddhist = [
30-
Temporal.PlainDate.from({ year: 2555, monthCode: "M12", day: 1, calendar: "buddhist" }, options),
29+
Temporal.PlainDate.from({ year: 2543, monthCode: "M01", day: 1, calendar: "buddhist" }, options),
3130
];
3231

3332
const datesChinese = [
@@ -39,7 +38,7 @@ const datesChinese = [
3938
];
4039

4140
const datesCoptic = [
42-
Temporal.PlainDate.from({ year: 1716, monthCode: "M12", day: 1, calendar: "coptic" }, options),
41+
Temporal.PlainDate.from({ year: 1716, monthCode: "M04", day: 22, calendar: "coptic" }, options),
4342
];
4443

4544
const datesDangi = [
@@ -51,47 +50,47 @@ const datesDangi = [
5150
];
5251

5352
const datesEthioaa = [
54-
Temporal.PlainDate.from({ year: 7492, monthCode: "M12", day: 1, calendar: "ethioaa" }, options),
53+
Temporal.PlainDate.from({ year: 7492, monthCode: "M04", day: 22, calendar: "ethioaa" }, options),
5554
];
5655

5756
const datesEthiopic = [
58-
Temporal.PlainDate.from({ year: 2000, monthCode: "M12", day: 1, calendar: "ethiopic" }, options),
57+
Temporal.PlainDate.from({ year: 1992, monthCode: "M04", day: 22, calendar: "ethiopic" }, options),
5958
];
6059

6160
const datesGregory = [
62-
Temporal.PlainDate.from({ year: 2000, monthCode: "M12", day: 1, calendar: "gregory" }, options),
61+
Temporal.PlainDate.from({ year: 2000, monthCode: "M01", day: 1, calendar: "gregory" }, options),
6362
];
6463

6564
const datesHebrew = [
66-
Temporal.PlainDate.from({ year: 5761, monthCode: "M12", day: 1, calendar: "hebrew" }, options),
65+
Temporal.PlainDate.from({ year: 5760, monthCode: "M04", day: 23, calendar: "hebrew" }, options),
6766
];
6867

6968
const datesIndian = [
70-
Temporal.PlainDate.from({ year: 1919, monthCode: "M12", day: 1, calendar: "indian" }),
69+
Temporal.PlainDate.from({ year: 1921, monthCode: "M10", day: 11, calendar: "indian" }, options),
7170
];
7271

7372
const datesIslamicCivil = [
74-
Temporal.PlainDate.from({ year: 1420, monthCode: "M12", day: 1, calendar: "islamic-civil" }),
73+
Temporal.PlainDate.from({ year: 1420, monthCode: "M09", day: 24, calendar: "islamic-civil" }, options),
7574
];
7675

7776
const datesIslamicTbla = [
78-
Temporal.PlainDate.from({ year: 1420, monthCode: "M12", day: 1, calendar: "islamic-tbla" }),
77+
Temporal.PlainDate.from({ year: 1420, monthCode: "M09", day: 25, calendar: "islamic-tbla" }, options),
7978
];
8079

8180
const datesIslamicUmalqura = [
82-
Temporal.PlainDate.from({ year: 1420, monthCode: "M12", day: 1, calendar: "islamic-umalqura" }),
81+
Temporal.PlainDate.from({ year: 1420, monthCode: "M09", day: 24, calendar: "islamic-umalqura" }, options),
8382
];
8483

8584
const datesJapanese = [
86-
Temporal.PlainDate.from({ year: 2000, monthCode: "M12", day: 1, calendar: "japanese" }),
85+
Temporal.PlainDate.from({ year: 2000, monthCode: "M01", day: 1, calendar: "japanese" }),
8786
];
8887

8988
const datesPersian = [
90-
Temporal.PlainDate.from({ year: 1378, monthCode: "M01", day: 1, calendar: "persian" }),
89+
Temporal.PlainDate.from({ year: 1378, monthCode: "M10", day: 11, calendar: "persian" }, options),
9190
];
9291

9392
const datesRoc = [
94-
Temporal.PlainDate.from({ year: 90, monthCode: "M01", day: 1, calendar: "roc" }),
93+
Temporal.PlainDate.from({ year: 89, monthCode: "M01", day: 1, calendar: "roc" }, options),
9594
];
9695

9796
const dates = [datesBuddhist, datesChinese, datesCoptic, datesDangi, datesEthioaa, datesEthiopic, datesGregory,

test/intl402/Temporal/PlainDateTime/prototype/add/month-boundary-non-iso.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33

44
/*---
55
esid: sec-temporal.plaindatetime.prototype.add
6-
description: Addition around end of month in the Buddhist calendar
6+
description: Addition around end of month in non-ISO calendars
77
features: [Temporal, Intl.Era-monthcode]
88
includes: [temporalHelpers.js]
99
---*/
1010

11-
const calendar = "buddhist";
1211
const options = { overflow: "reject" };
1312

1413
const months1 = new Temporal.Duration(0, 1);
@@ -27,7 +26,7 @@ const durations = [
2726
];
2827

2928
const datesBuddhist = [
30-
Temporal.PlainDateTime.from({ year: 2555, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "buddhist" }, options),
29+
Temporal.PlainDateTime.from({ year: 2543, monthCode: "M01", day: 1, hour: 12, minute: 34, calendar: "buddhist" }, options),
3130
];
3231

3332
const datesChinese = [
@@ -39,7 +38,7 @@ const datesChinese = [
3938
];
4039

4140
const datesCoptic = [
42-
Temporal.PlainDateTime.from({ year: 1716, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "coptic" }, options),
41+
Temporal.PlainDateTime.from({ year: 1716, monthCode: "M04", day: 22, hour: 12, minute: 34, calendar: "coptic" }, options),
4342
];
4443

4544
const datesDangi = [
@@ -51,47 +50,47 @@ const datesDangi = [
5150
];
5251

5352
const datesEthioaa = [
54-
Temporal.PlainDateTime.from({ year: 7492, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "ethioaa" }, options),
53+
Temporal.PlainDateTime.from({ year: 7492, monthCode: "M04", day: 22, hour: 12, minute: 34, calendar: "ethioaa" }, options),
5554
];
5655

5756
const datesEthiopic = [
58-
Temporal.PlainDateTime.from({ year: 2000, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "ethiopic" }, options),
57+
Temporal.PlainDateTime.from({ year: 1992, monthCode: "M04", day: 22, hour: 12, minute: 34, calendar: "ethiopic" }, options),
5958
];
6059

6160
const datesGregory = [
62-
Temporal.PlainDateTime.from({ year: 2000, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "gregory" }, options),
61+
Temporal.PlainDateTime.from({ year: 2000, monthCode: "M01", day: 1, hour: 12, minute: 34, calendar: "gregory" }, options),
6362
];
6463

6564
const datesHebrew = [
66-
Temporal.PlainDateTime.from({ year: 5761, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "hebrew" }, options),
65+
Temporal.PlainDateTime.from({ year: 5760, monthCode: "M04", day: 23, hour: 12, minute: 34, calendar: "hebrew" }, options),
6766
];
6867

6968
const datesIndian = [
70-
Temporal.PlainDateTime.from({ year: 1919, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "indian" }),
69+
Temporal.PlainDateTime.from({ year: 1921, monthCode: "M10", day: 11, hour: 12, minute: 34, calendar: "indian" }, options),
7170
];
7271

7372
const datesIslamicCivil = [
74-
Temporal.PlainDateTime.from({ year: 1420, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "islamic-civil" }),
73+
Temporal.PlainDateTime.from({ year: 1420, monthCode: "M09", day: 24, hour: 12, minute: 34, calendar: "islamic-civil" }, options),
7574
];
7675

7776
const datesIslamicTbla = [
78-
Temporal.PlainDateTime.from({ year: 1420, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "islamic-tbla" }),
77+
Temporal.PlainDateTime.from({ year: 1420, monthCode: "M09", day: 25, hour: 12, minute: 34, calendar: "islamic-tbla" }, options),
7978
];
8079

8180
const datesIslamicUmalqura = [
82-
Temporal.PlainDateTime.from({ year: 1420, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "islamic-umalqura" }),
81+
Temporal.PlainDateTime.from({ year: 1420, monthCode: "M09", day: 24, hour: 12, minute: 34, calendar: "islamic-umalqura" }, options),
8382
];
8483

8584
const datesJapanese = [
86-
Temporal.PlainDateTime.from({ year: 2000, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "japanese" }),
85+
Temporal.PlainDateTime.from({ year: 2000, monthCode: "M01", day: 1, hour: 12, minute: 34, calendar: "japanese" }),
8786
];
8887

8988
const datesPersian = [
90-
Temporal.PlainDateTime.from({ year: 1378, monthCode: "M01", day: 1, hour: 12, minute: 34, calendar: "persian" }),
89+
Temporal.PlainDateTime.from({ year: 1378, monthCode: "M10", day: 11, hour: 12, minute: 34, calendar: "persian" }, options),
9190
];
9291

9392
const datesRoc = [
94-
Temporal.PlainDateTime.from({ year: 90, monthCode: "M01", day: 1, hour: 12, minute: 34, calendar: "roc" }),
93+
Temporal.PlainDateTime.from({ year: 89, monthCode: "M01", day: 1, hour: 12, minute: 34, calendar: "roc" }, options),
9594
];
9695

9796
const dates = [datesBuddhist, datesChinese, datesCoptic, datesDangi, datesEthioaa, datesEthiopic, datesGregory,

test/intl402/Temporal/PlainDateTime/prototype/subtract/month-boundary-non-iso.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33

44
/*---
55
esid: sec-temporal.plaindatetime.prototype.subtract
6-
description: Addition around end of month in the Buddhist calendar
6+
description: Addition around end of month in non-ISO calendars
77
features: [Temporal, Intl.Era-monthcode]
88
includes: [temporalHelpers.js]
99
---*/
1010

11-
const calendar = "buddhist";
1211
const options = { overflow: "reject" };
1312

1413
const months1 = new Temporal.Duration(0, -1);
@@ -27,7 +26,7 @@ const durations = [
2726
];
2827

2928
const datesBuddhist = [
30-
Temporal.PlainDateTime.from({ year: 2555, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "buddhist" }, options),
29+
Temporal.PlainDateTime.from({ year: 2543, monthCode: "M01", day: 1, hour: 12, minute: 34, calendar: "buddhist" }, options),
3130
];
3231

3332
const datesChinese = [
@@ -39,7 +38,7 @@ const datesChinese = [
3938
];
4039

4140
const datesCoptic = [
42-
Temporal.PlainDateTime.from({ year: 1716, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "coptic" }, options),
41+
Temporal.PlainDateTime.from({ year: 1716, monthCode: "M04", day: 22, hour: 12, minute: 34, calendar: "coptic" }, options),
4342
];
4443

4544
const datesDangi = [
@@ -51,47 +50,47 @@ const datesDangi = [
5150
];
5251

5352
const datesEthioaa = [
54-
Temporal.PlainDateTime.from({ year: 7492, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "ethioaa" }, options),
53+
Temporal.PlainDateTime.from({ year: 7492, monthCode: "M04", day: 22, hour: 12, minute: 34, calendar: "ethioaa" }, options),
5554
];
5655

5756
const datesEthiopic = [
58-
Temporal.PlainDateTime.from({ year: 2000, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "ethiopic" }, options),
57+
Temporal.PlainDateTime.from({ year: 1992, monthCode: "M04", day: 22, hour: 12, minute: 34, calendar: "ethiopic" }, options),
5958
];
6059

6160
const datesGregory = [
62-
Temporal.PlainDateTime.from({ year: 2000, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "gregory" }, options),
61+
Temporal.PlainDateTime.from({ year: 2000, monthCode: "M01", day: 1, hour: 12, minute: 34, calendar: "gregory" }, options),
6362
];
6463

6564
const datesHebrew = [
66-
Temporal.PlainDateTime.from({ year: 5761, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "hebrew" }, options),
65+
Temporal.PlainDateTime.from({ year: 5760, monthCode: "M04", day: 23, hour: 12, minute: 34, calendar: "hebrew" }, options),
6766
];
6867

6968
const datesIndian = [
70-
Temporal.PlainDateTime.from({ year: 1919, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "indian" }),
69+
Temporal.PlainDateTime.from({ year: 1921, monthCode: "M10", day: 11, hour: 12, minute: 34, calendar: "indian" }, options),
7170
];
7271

7372
const datesIslamicCivil = [
74-
Temporal.PlainDateTime.from({ year: 1420, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "islamic-civil" }),
73+
Temporal.PlainDateTime.from({ year: 1420, monthCode: "M09", day: 24, hour: 12, minute: 34, calendar: "islamic-civil" }, options),
7574
];
7675

7776
const datesIslamicTbla = [
78-
Temporal.PlainDateTime.from({ year: 1420, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "islamic-tbla" }),
77+
Temporal.PlainDateTime.from({ year: 1420, monthCode: "M09", day: 25, hour: 12, minute: 34, calendar: "islamic-tbla" }, options),
7978
];
8079

8180
const datesIslamicUmalqura = [
82-
Temporal.PlainDateTime.from({ year: 1420, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "islamic-umalqura" }),
81+
Temporal.PlainDateTime.from({ year: 1420, monthCode: "M09", day: 24, hour: 12, minute: 34, calendar: "islamic-umalqura" }, options),
8382
];
8483

8584
const datesJapanese = [
86-
Temporal.PlainDateTime.from({ year: 2000, monthCode: "M12", day: 1, hour: 12, minute: 34, calendar: "japanese" }),
85+
Temporal.PlainDateTime.from({ year: 2000, monthCode: "M01", day: 1, hour: 12, minute: 34, calendar: "japanese" }),
8786
];
8887

8988
const datesPersian = [
90-
Temporal.PlainDateTime.from({ year: 1378, monthCode: "M01", day: 1, hour: 12, minute: 34, calendar: "persian" }),
89+
Temporal.PlainDateTime.from({ year: 1378, monthCode: "M10", day: 11, hour: 12, minute: 34, calendar: "persian" }, options),
9190
];
9291

9392
const datesRoc = [
94-
Temporal.PlainDateTime.from({ year: 90, monthCode: "M01", day: 1, hour: 12, minute: 34, calendar: "roc" }),
93+
Temporal.PlainDateTime.from({ year: 89, monthCode: "M01", day: 1, hour: 12, minute: 34, calendar: "roc" }, options),
9594
];
9695

9796
const dates = [datesBuddhist, datesChinese, datesCoptic, datesDangi, datesEthioaa, datesEthiopic, datesGregory,

0 commit comments

Comments
 (0)