News for hackers. Stuff that matters.
Re:Pirate Bay founder thinks Parler’s inability to stay onli... by CameronNemo on Wednesday January 13, 2021 @10:26PM (#25771491)
Is ISO8601 without punctuation still ISO8601? Most log parsers I have seen would not pick up the Parker format. ex gr

https://docs.python.org/3/library/datetime.html#datetime.dat...

https://github.com/elastic/logstash/blob/v1.4.2/patterns/gro...

Re:Pirate Bay founder thinks Parler’s inability to stay onli... by Earwig on Wednesday January 13, 2021 @10:49PM (#25771692)
Yes... kind of. Per https://en.wikipedia.org/wiki/ISO_8601, there is a "basic format" without separators and an "extended format" that includes them for readability. However, a T is still required to separate the date and time in the most recent version of the standard.
Re:Pirate Bay founder thinks Parler’s inability to stay onli... by Groxx on Thursday January 14, 2021 @02:10AM (#25773149)
ISO 8601 is pretty absurd when you actually read it. `2021-W02` and `--01-14` are valid, as is `--1013` (quick! guess what that means! and beware that `-1013` is valid too!)

Please, everyone, use a single format at all times in your systems. I don't really care what it is, though I'm fond of `2021-01-14T06:28:08Z` because it's unambiguous. But don't just say "use ISO 8601", it's far too vague and you'll inevitably have variations.

Re:Pirate Bay founder thinks Parler’s inability to stay onli... by gerikson on Thursday January 14, 2021 @03:02AM (#25773501)
Without having read the spec...

* `2021-W02` means the second (ISO) week of 2021. Perfectly valid and used in a lot of planning.

* `--01-14` - I'm assuming this is a recurring date: every 14 Jan for every year

* `--1013` - at 1PM every 10th of the month? Guessing here

I believe ISO 8601 is a ISO codification of a DIN standard, and based on other standards processes I'm guessing some German manufacturing companies were the only ones who bothered showing up, so their internal software practices were encoded into the spec because no-one else cared..

Re:Pirate Bay founder thinks Parler’s inability to stay onli... by vianneychevalie on Thursday January 14, 2021 @05:11AM (#25774552)
That is such a common problem when standardizing, I've started to force my clients to have at least one person of each entity in project teams.

Often the biggest entity will end up accidentally forcing their practices, sometimes sub-optimal, to entire organizations, simply by having the manpower to show up to meetings.

Re:Pirate Bay founder thinks Parler’s inability to stay onli... by gerikson on Thursday January 14, 2021 @06:49AM (#25775268)
Edit `--1013` is 13 Oct in any year: https://en.wikipedia.org/wiki/ISO_8601#Truncated_representat...

(`--01-14` is Jan 14 in any year, the last dash is "optional").

The "duration" (`P`) and "repetition" (`R`) syntax is also pretty wild.

Re:Pirate Bay founder thinks Parler’s inability to stay onli... by JimDabell on Thursday January 14, 2021 @03:38AM (#25773754)
RFC 3339 is a profile of ISO 8601 that is much more limited but still provides the timestamp format everybody expects when you say “ISO 8601”:

https://tools.ietf.org/html/rfc3339

Re:Pirate Bay founder thinks Parler’s inability to stay onli... by rakoo on Thursday January 14, 2021 @03:35AM (#25773725)
Indeed, what you really want to say is "use RFC3339" (https://www.ietf.org/rfc/rfc3339.txt)