This is very neat, but maybe not completely accurate. "2021-10-24 11:02:03Z" is outside iso8601 in the figure, but I think it's valid iso8601. True, "T" is the One True date-time separator in iso8601 (IMO its biggest wart, as it looks awful for human eyes: "2021-10-24T11:02:03Z"). But according to the draft standard[1], page 21: > By mutual agreement of the partners in information interchange, the character [T] may b…
RFC 3339 vs. ISO 8601
161–170 of 177 posts
Re: RFC 3339 vs. ISO 8601
#162Earlier quoted context omitted.
Where's the money going? ISO staff? Who do what?
ISO holds meetings where member delegates improve the drafts and negotiate the standards to be.
Re: RFC 3339 vs. ISO 8601
#163Earlier quoted context omitted.
It should not be legal to incorporate proprietary standards into law.
At least in the US, it's fairly hard to outlaw changing laws in certain ways since the people with the power to pass new laws are equally able to change past ones, including the ones that limit their power. The way to do something like this would be to put it in the Constitution, which isn't able to be changed through legislation alone, but it seems that for the time being, adding new amendments isn't really somethin…
Carl Malamud has been fighting this point worldwide with some success for decades. For example here's the state or Oregon agreeing: https://public.resource.org/oregon.gov/index.html
Re: RFC 3339 vs. ISO 8601
#164Earlier quoted context omitted.
> Mandated ISO standards in 1947 was absurd secret law too. Democracy is not that new of a concept. In the 1940s, if you wanted to read legislation, there was no downloading it for free off the Internet – either you purchased a printed copy, or found a library that held it – and you may have had to travel some distance to do so, there was no guarantee that your neighbourhood public library did. Most people viewed cha…
> the idea that everyone was entitled to a free personal copy of all legislation was not widely accepted Was the idea that everyone is entitled to a copy of all legislation at cost widely accepted? Or did most people believe the the publisher (or the legislature?) should overcharge them and stand to make a profit off it? I don't know how much "at cost" would be for ISO, but something tells me it wouldn't be an identi…
Of course, that doesn't entitle you to a copy, making it available at libraries is already enough.
Re: RFC 3339 vs. ISO 8601
#165Earlier quoted context omitted.
Python has one of the most exhaustive stdlibs out there. Surely the a handful of useful but trivial missing functions don't make it any less serious than, for example, NodeJS, which barely even has a stdlib.
Python also has one of the most outdated and dead libs in stdlib out there. https://www.python.org/dev/peps/pep-0594/
Re: RFC 3339 vs. ISO 8601
#166Earlier quoted context omitted.
I guess we could just put the lat/long and let people figure it out? But that still doesn't fix the time when the time zone does change... So using UTC is a simple fix
UTC doesn’t fix anything if you meant 6pm my local time on that day, come hell or high water. Eg: Work at the local library is always 9 to 5 (again “local time”) and you mean precisely one hour after work lets up, regardless of whatever daylight savings or time zone changes occur between now and then. You need to use either a naive date-time representation coupled with the additional context (“my time”) or use someth…
China has one official time zone that covers five geographical time zones. Tell me, exactly how does saying "It's 6PM in China" tell me anything useful about the local library? You have to go to a local website and find out what time "in that part of China" the library is open. The timezone was never intended to express that.
Re: RFC 3339 vs. ISO 8601
#167Earlier quoted context omitted.
I’m amazed this is still a problem, it makes it hard to treat python seriously
Python has one of the most exhaustive stdlibs out there. Surely the a handful of useful but trivial missing functions don't make it any less serious than, for example, NodeJS, which barely even has a stdlib.
Re: RFC 3339 vs. ISO 8601
#168This is very neat, but maybe not completely accurate. "2021-10-24 11:02:03Z" is outside iso8601 in the figure, but I think it's valid iso8601. True, "T" is the One True date-time separator in iso8601 (IMO its biggest wart, as it looks awful for human eyes: "2021-10-24T11:02:03Z"). But according to the draft standard[1], page 21: > By mutual agreement of the partners in information interchange, the character [T] may b…
There are some non-trivial changes between the draft standards and the final ISO 8601:2019-1 standard, one of which relates to making the use of T stricter, and the mentioned provision was removed. Regardless, ISO 8601 has generally discouraged using spaces within expressions. From ISO 8601:2004, section 3.4.1: > Unless explicitly allowed by this International Standard the character "space" shall not be used in the r…
Re: RFC 3339 vs. ISO 8601
#169Earlier quoted context omitted.
Can you elaborate on this? Parsing ISO 8601 formatted dates doesn't result in naive Python datetimes: >>> datetime.fromisoformat("2021-10-24T20:17:41+02:00") datetime.datetime(2021, 10, 24, 20, 17, 41, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200)))
Sorry, was on mobile and didn't elaborate. Was referring to datetime.datetime.now(); why can't it incorporate the local timezone?
>>> from datetime import datetime, timezone
>>> datetime.now(tz=timezone.utc).astimezone()
datetime.datetime(2021, 10, 25, 19, 58, 34, 51668, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200), 'CEST'))
Or if you want to use a specific timezone: >>> from datetime import datetime
>>> from zoneinfo import ZoneInfo
>>> datetime.now(tz=ZoneInfo("Europe/Berlin"))
datetime.datetime(2021, 10, 25, 19, 58, 34, 51668, tzinfo=zoneinfo.ZoneInfo(key='Europe/Berlin'))Re: RFC 3339 vs. ISO 8601
#170Earlier quoted context omitted.
Yeah the Line Islands are the exception as always.
We could've gone with most of New Zealand (UTC+13 summer time) and any of the US territories in UTC-11. These are marginal cases, not exceptional ones.