-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Which era should be the year
anchor for the ethiopic calendar?
#534
Comments
year
anchor for the ethiopic calendar?
No strong opinion but rough lean towards Option 2, because modern dates is what |
Should this issue be ported to https://github.com/tc39/proposal-intl-era-monthcode ? @FrankYFTang @sffc |
The anchor era should be the one with the same name as the calendar, which is the one starting in 0008 CE |
just to answer this part, I think the user - in Ethiopia - would expect |
@sffc @Manishearth It sounds like @kabaros would prefer the @kabaros thanks so much for your feedback! |
Yes; it sounds like everyone in this thread is in agreement that |
@kabaros - some follow-up questions for you about the Ethiopian calendar: What is the era and year number before year 1 of the AA era? (This is the year that starts on -005492-07-17 in the ISO 8601 calendar.) Is there a "year zero" in that era? Or is there another era used? Or is it irrelevant because the Ethiopian calendar is intended to record the beginning of the world, so the concept of "before the beginning of the world" doesn't really exist in this calendar? Note that V8 today assumes that there's a year 0, a year -1, etc. new Intl.DateTimeFormat("en", {calendar: 'ethiopic', timeZone: 'UTC'}).format(new Date('-005492-07-17'));
// => '1/1/1 ERA0'
new Intl.DateTimeFormat("en", {calendar: 'ethiopic', timeZone: 'UTC'}).format(new Date('-005492-07-16'));
// => '13/5/0 ERA0'
new Intl.DateTimeFormat("en", {calendar: 'ethiopic', timeZone: 'UTC'}).format(new Date('-005493-07-17'));
// => '13/6/-1 ERA0' |
This isn't V8 specific, but actually directly comes from ICU4C. Compared to that, ICU4X currently uses two eras Also see: |
@justingrant - I am not sure about the answer to this. I am forwarding the question to my colleague @abyot. He knows much more about ethiopic calendars than me. |
@Manishearth @sffc do you have any guidance for these questions about era definition? |
It should be irrelevant, I'm not aware of any calendar which is anchored on a world-creation date for an era and also has any accepted rendering for dates before that. (though technically all ecclesiastical calendars for Abrahamic religions have an Anno Mundi that is after the seven days of Creation, so technically there might be a reason to talk of a small number of dates pre-A.M. It does not appear that anyone actually does so in terms of actual dates rather than "day of Creation") |
<calendar type="ethiopic">
<calendarSystem type="other"/>
<eras>
<era type="0" end="8-08-28" code="ethioaa" aliases="ethiopic-amete-alem mundi"/>
<era type="1" start="8-08-29" code="ethiopic" aliases="incar"/>
</eras>
</calendar>
<calendar type="ethiopic-amete-alem">
<eras>
<era type="0" end="-5492-08-29" code="ethioaa" aliases="ethiopic-amete-alem mundi"/>
</eras>
</calendar> So dates before epoch should be represented in the I'm still waiting on |
According to CLDR, does |
Unless specified otherwise, years are considered to be ..., -2, -1, 0, 1, 2, ... and eras that use 1-N counting are indicated with "inverse" in the XML |
Temporal.PlainDate has two different year properties: an
eraYear
property that's used in a pair withera
, and a signedyear
property (@sffc calls this "algebraic year") that's used without anera
to better mirror ISO behavior and therefore make it easier to write code that works across all ICU calendars.year
is always relative to a per-calendar "anchor era". For almost all ICU calendars, the choice of anchor era is obvious because there's only one era that counts years forwards. (Backwards-counting eras like BC should never be the anchor.)However, there are two ICU calendars with more than one forward-counting era:
japanese
andethiopic
. Forjapanese
where there are many eras (with more expected in the future), we're planning to use the ISO year foryear
which sidesteps the anchor era question. See tc39/proposal-temporal#526 for more details.But what about
ethiopic
? There are two eras: one starting-005492-07-17
and another starting+000008-08-27
. The first era is identical toethioaa
's only era, while the second era is unique toethiopic
.Which era should be the anchor?
Option 1:
-005492-07-17
should be the anchor because otherwiseethiopic
'syear
would be identical toethioaa
'syear
, and SHOULD NOT be the same because the user presumably choseethiopic
notethioaa
for a good reason?Option 2:
+000008-08-27
should be the anchor becauseethiopic
'syear
would be identical toethioaa
'syear
, and SHOULD be the same to maximize cross-calendar compatibility for developers servicing Ethiopian users?I don't have enough context about how
ethioaa
vs.ethiopic
is used to have an opinion about which option is better.I assume that the answer depends on the cultural expectations of an
ethiopic
calendar user. If ayear
is shown with noera
, would that user expect it to be relative to the earlier era or the later one?@sffc @Manishearth
The text was updated successfully, but these errors were encountered: