Live data from Hacker News

RFC 3339 vs. ISO 8601

ijmacd.github.io

171–177 of 177 posts

Re: RFC 3339 vs. ISO 8601

#171

Earlier quoted context omitted.

Sorry, was on mobile and didn't elaborate. Was referring to datetime.datetime.now(); why can't it incorporate the local timezone?

Well, it can, it's just not the default: >>> 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.da…

Yes, but who’s more likely to get the code right to determine the system’s timezone: the programmer or the library?

datetime.datetime.now() is by definition local to the system. What motivation is there to not include a timezone with the return value?

Re: RFC 3339 vs. ISO 8601

#173

Earlier 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…

I honestly don't think the average person thought much about the cost of buying legislation. Even today, I think the average person feels intimidated by legislation and doesn't want to read it even if it is all freely available.

As far as the official version of federal/national legislation goes – in 1947, in both the US and the UK, that was sold by a government agency overall at cost or even at a loss. ("Overall at cost" meaning, they might sometimes have made a profit on an individual print run, but profits they made on some print runs were balanced by losses on others, so they didn't make a profit overall.)

However, most lawyers preferred to use private editions published by for-profit publishers, which added copyrighted notes providing cross-references to other relevant legislation, important court decisions, etc. So the "raw" version of the legislation was available at-cost but the version most lawyers actually used was not. And that remains true today – most lawyers don't rely on the freely available versions on the web, they use expensive commercial subscription services (Westlaw, LexisNexis, etc) which add lots of very useful privately copyrighted notes–and you really need the information in those notes to properly interpret the law, because if you don't have cross-references to other legislation and case law, you won't know what it really means in practice–and although you could probably reconstruct those notes yourself to some extent (such as by searching free case law databases for references to a certain section of legislation), doing so is laborious and likely to be error-prone (it is easy to miss something important because you didn't use the exactly right search term, etc). So even now, access to the law is not as "free" as many think it is.

> I don't know how much "at cost" would be for ISO, but something tells me it wouldn't be an identical 158 CHF for both PDF and paper.

I think from ISO's viewpoint, it is "at cost", because they are not just including the cost of printing or hosting the download, but also the administrative and editorial costs of producing the underlying standard. ISO is a not-for-profit body and any profit it makes is reinvested into the standard development process. By contrast, when you buy a copy of an Act/Statute from the government print office, you are not paying for the actual running costs of the Congress/Parliament/etc which produced the legislation – that is paid for through taxation – whereas ISO being a private body can't levy taxes.

That's not to say that ISO has to use their current model. They could make all their standards freely available and try to recover the editorial/administrative costs through some other mechanism – charging membership fees to corporations, government grants, etc. However, while those methods are feasible – other standard bodies use them – I think ISO would respond that they would make ISO more dependent upon and more beholden to corporate and government interests than they currently are. I suppose the critical response to that is that ISO already is quite beholden to corporate and government interests, and it is hard to see how it could get any more beholden, but ISO would not agree with that.

Re: RFC 3339 vs. ISO 8601

#174

Earlier quoted context omitted.

> 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…

Neither. Access to legislation must be possible at no cost for everybody. Otherwise you can't expect people to follow it. Of course, that doesn't entitle you to a copy, making it available at libraries is already enough.

> Neither. Access to legislation must be possible at no cost for everybody. Otherwise you can't expect people to follow it.

In the real world, most people follow legislation without ever reading it. People build a rough mental model, based on media sources, government websites, common sense, etc, which divides acts into "probably illegal", "probably legal", and "grey area". If they stick to the "probably legal", they are unlikely to have any legal problems. If they are seriously considering venturing into the "probably illegal" or "grey area" zones, a wise person hires a lawyer and gets some professional legal advice first. The majority of the population has no hope of ever understanding legislation – something people on this website tend to forget, because most people on this website are significantly more intelligent and better educated than the average person is. And even those of us who aren't intimidated by legislation and case law and law textbooks, in the way that the average person is, ought to remember the old adage "A man who is his own lawyer has a fool for a client"–if you don't have the formal training and real-world experience of an actual lawyer, it is easy to make a costly mistake–e.g reading some law literally, and unfortunately you never found the case law which interprets it to mean something quite different from what it literally says. Keep the amateur lawyering as a hobby, maybe some real world situations where the cost of being wrong is low (such as challenging a parking ticket), and rely on a professional for anything actually important.

> Of course, that doesn't entitle you to a copy, making it available at libraries is already enough.

Well, ISO standards are freely available at some libraries. Generally national libraries, major public research libraries, university libraries (some of which are open to general public, others restrict admission to staff/students/etc.) Your local public library probably doesn't have any copies of ISO standards–mine doesn't. But, my local public library doesn't seem to have copies of legislation and case law either – my local public library has very little in the way of serious/professional/academic legal texts, just some very introductory stuff aimed at the general reader.

Re: RFC 3339 vs. ISO 8601

#175

Earlier quoted context omitted.

Python also has one of the most outdated and dead libs in stdlib out there. https://www.python.org/dev/peps/pep-0594/

The stdlib contains outdated modules, it's not outdated itself. Windows 11 still contains some DLLs dating back as far as at least NT 4.0 and nobody would call it an outdated OS. The stdlib is constantly being improved and I for one am glad that older and rarely used features are being kept around instead of booting them out with the next minor release.

>The stdlib is constantly being improved

At a glacial pace. Generally stuff is being added and left to die.

>rarely used features are being kept around instead of booting them out with the next minor release

Or, maybe, being actively maintained? Python desperately lacked corporate interest and paid maintainership, and I'm glad that this starts to change. Entirely volunteer model sounds cool, until you see that people are only interested in adding "cool" stuff and syntactic sugar like walrus operator.

Re: RFC 3339 vs. ISO 8601

#176
post #93

Earlier quoted context omitted.

As I have encountered it, the vast cost of the standardization process is already borne outside of ISO because creation and update of the standards is done by outside participants. Hosting the standards documents is a minuscule cost and fees seems mostly a holdover when potentially large bound physical document publishing and distribution was involved.

I know they don’t subsidize standard development. But there is still cost for running an organization to manage and coordinate (and maybe translate) what is being standardized over hundreds of topics. Of the 40 million in total income, selling standard documents is 1/4 to 1/3 of their income. You don’t pay for the cost of electronic copies, but for running the organization. source: https://www.iso.org/files/live/site…

That’s a tiny amount. The major nations should each pull a budget line item and support it directly and remove costs of accessing the iso standards. That could go under NIST in the US. (Maybe start a service charging for for cryptographically signed standards doc).

Re: RFC 3339 vs. ISO 8601

#177

Earlier quoted context omitted.

That's a sensible format only for interchange - humans need separators to read it...

They don't need it. It makes it easier, but if you know it's a date and time format, it's pretty easy to read as long as you take care to keep track at which characters your looking at. Justlikehowinmostcasesepacesmakeiteasiertoreadsomethingbutaren'trequired.

Okay. Go try quickly scanning a table or spreadsheet with 1000 rows of that. Good luck.
Post reply on HN