--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 elixir-lang-co...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/51e44339-31aa-4ec6-93c8-3ca0f7901926n%40googlegroups.com.
--
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 elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/51e44339-31aa-4ec6-93c8-3ca0f7901926n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/84f61e39-f261-43dd-9dd2-48cf9bcb4937n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BxAiOwff4FtdJoVormDLh8ZZ%3Dt4iOOMLqicH97uvJsqQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/02b61880-316b-46be-86cc-8427bab09fa3%40www.fastmail.com.
> 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 <christ...@gmail.com> 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 elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/BA38F710-E87F-436D-BDDA-CE76EB10447F%40gmail.com.
I like José's suggesting of supporting a flag, but it gets kind of complicated as there are several dimensions here even in our reduced case. Dates, times, and datetimes support either basic or extended notations; dates and datetimes support calendar dates or ordinal dates; both are applicable to any parsing.
If we went with this approach I'd lean towards always accepting either form for one of the dimensions, and using flags to the sigil and parsing functions to indicate intent for the other.
--
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 elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/dbc36578-362b-4a4c-9a97-ac6026149267n%40googlegroups.com.
5.2.3 Ordinal date
5.2.3.1 Complete representations
A complete representation of an ordinal date shall be as follows.
a) Basic format: [year][dayo] EXAMPLE 1 1985102
b) Extended format: [year][“-”][dayo] EXAMPLE 2 1985-102
If by agreement, expanded representations are used, the formats shall be as specified below. The interchange parties shall agree on the additional number of digits in the time scale component year.
5.2.3.2 Expanded representations
In the examples below it has been agreed to expand the time scale component year with two digits.
a) Basic format: [±][year(6)][dayo] EXAMPLE 1 +001985102
b) Extended format: [±][year(6)][“-”][dayo] EXAMPLE 2 +001985-102
--
You received this message because you are subscribed to a topic in the Google Groups "elixir-lang-core" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elixir-lang-core/CcXpeMQhsmU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4JNeGkCNW_6ic2XkxTkFV3uyMT%2B3EZYJuguhzzZfpOnpQ%40mail.gmail.com.
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 elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/15198E56-9D02-4A0E-8E6D-AB905531112A%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/d23cddf9-5f10-4618-b6c7-a0902b828bd2n%40googlegroups.com.
The Gregorian calendar defines a calendar year to be either 365 or 366 days, which begins on January 1 and ends on December 31. Each Gregorian calendar year can be identified by a 4-digit ordinal number beginning with ‘0000’ for year zero, through ‘9999’.
4.3.2 Calendar year and years duration
The calendar year and years duration are represented as follows:
a) Implied: [YYYY]
EXAMPLE 1 ‘1985’ (calendar year 1985)
b) Explicit: [i][“Y”]
EXAMPLE 2 ‘12Y’ (twelve years)
The number of digits may exceed 4 in the case of expanded representation, in which case the year number may be preceded by a minus sign to indicate a year preceding year zero.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4Lxe9tgq%3DHhBaPiyYmdj%3DJHG2WKN3RqPzWi2t0FvuSEvw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/9EE123AF-BF27-462C-AF79-3B9406C1DD5D%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/f1636d39-4a9d-4206-b6da-33a10b8e42c6n%40googlegroups.com.
15 Profiles 15.1 General
The ISO 8601 series includes many features and in many cases allows several different formats to represent a single feature or multiple interpretations for a single format. Vendors implementing the ISO 8601 series may implement only a subset of its features, or different representations of a given feature, causing interoperability issues with other implementations.
An ISO 8601 profile is a specification of how the ISO 8601 series is to be used for a particular context (application, discipline or community), specifying the necessary features and representations to implement and providing interpretations applicable to the particular context.
This document provides one such profile in Annex A.
NOTE This document supports the creation of a registration agency for ISO 8601 profiles, which registers
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4J1962bJkQFOES%2B9VCbhQTYa6ds0cKBcjj_ZJ7qVnXKzw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/c0d90183-befd-411d-9af6-09506584ac95n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/c7924190-eab0-4db4-a82e-02203d43e23en%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BgKCKEabwr6DnGj9AxcUhugW%3DpT9%2B-hq_XrEatyAM9Ow%40mail.gmail.com.