Talk:ISO 8601

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
WikiProject Time (Rated B-class, Top-importance)
WikiProject iconThis article is within the scope of WikiProject Time, a collaborative effort to improve the coverage of Time on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
B-Class article B  This article has been rated as B-Class on the project's quality scale.
 Top  This article has been rated as Top-importance on the project's importance scale.

Wikipedia dates[edit]

Some people have proposed using ISO 8601 for Wikipedia dates. For more of this discussion, see Wikipedia talk:Manual of Style (dates and numbers).

-- (unsigned) 2003-03-01T12:06:42‎ MartinHarper

It appears that it's rapidly becoming a de facto standard (if not yet de jure) at least for dates in Wikipedia citations.
-- (unsigned) 2014-02-11T22:05:46‎

Standard Date[edit]

You can use quite a couple templates, in the YYYY-MM-DD date format

{{date|2=ISO}} or {{ISO date}} could be used. — Preceding unsigned comment added by (talkcontribs) 00:47, 10 November 2018 UTC (UTC)

Would it be useful to define what a day/month/year consist of?[edit]

I was reading this line in Durations :

Thus, "PT36H" could be used as well as "P1DT12H" for representing the same duration. But keep in mind that "PT36H" is not the same as "P1DT12H" when switching from or to Daylight saving time.

And thought "Surely a day is defined as 24 hours and 12 hours is 12 hours, so why would changing daylight savings matter?"

But presumably a day is defined like "the next occasion when the time is greater than current time" ? Meaning 1 day per year is 23 hours long and one is 25.

And then considered months/years, month is the next occasion when the day is the greater (or month number more than 1 different), and a year the next occasion where the month+day are greater.

Seems like it would be useful information to be added to the page. (probably needs to be worded better than that and not just a guess!)

Can date have time zone info?[edit]

I see no example of date with time zone, eg. 2020-11-08Z or 2020-11-08+01:00 (this implies a date has a time of 00:00). Not sure if this is legal in ISO 8601? I know DateTime\DateTimeOffset in .NET will successfully parse it thou, and I get tons of hits on Google "yyyy-MM-ddZ". This seems to be a weakness in the standard, I think it should have been specifically disallowed if not legal. — Preceding unsigned comment added by (talk) 23:03, 8 November 2020 (UTC)

It could be useful to have info about this in the main article. — Preceding unsigned comment added by Osexpert (talkcontribs) 15:11, 8 November 2020 (UTC)
At least at the time of writing this, the article does have a second-level section titled "Time zone designators", which has many examples of the kind you wished for. Teemu Leisti (talk) 14:01, 31 December 2020 (UTC)
Teemu Leisti, I think you missed the point of the original post. Does ISO 8601 allow a representation like 2020-11-08+01:00 which has no indication of the time of day? For example, if I read a newspaper article that said an event occurred 11 November 2020 in Paris, France, without giving the time of day, I could represent it as 2020-11-08+01:00, if that is a valid representation. Jc3s5h (talk) 14:39, 31 December 2020 (UTC)
You're right, I didn't read the question carefully enough and missed the point. I googled a bit, and found this question [1] in Stack Overflow. The consensus of the answers is that the standard does not allow for adding a timezone to a date without a time component. Teemu Leisti (talk) 15:19, 31 December 2020 (UTC)