> Ordinal dates are interesting because while they are not calendar dates, they 
> are trivially convertible into them.

True for the proleptic Gregorian calendar, not necessarily so for other 
calendars. Since ISO8601 is explicitly only concerned with that calendar I 
expect this isn’t an issue.

However given ordinal days of the year do exist for all calendars (that I’m 
aware of since they all have the concept of a day) perhaps adding a callback to 
`Calendar` of something like `month_and_day_from_ordinal(year, ordinal)` would 
be something to consider? Then of course implement that for `Calendar.ISO`.



> On 5 Feb 2021, at 6:16 am, Christopher Keele <[email protected]> wrote:
> 
> Ordinal dates are interesting because while they are not calendar dates, they 
> are trivially convertible into them.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/BA38F710-E87F-436D-BDDA-CE76EB10447F%40gmail.com.

Reply via email to