you are viewing a single comment's thread
view the rest of the comments
[–] 319 points 4 days ago (35 children)
  • [–] 200 points 4 days ago (7 children)
  • [–] 16 points 3 days ago (2 children)

    RFC 3339 FTW!

    Open source, and no ambiguous options grandfathered in.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 5 points 3 days ago

    Was looking for this. Yes. Whenever possible, dates should be specified in a format that is BOTH RFC 3339 and ISO 8601. I'd say both have their quirks, but the intersection of the grammars is machine-parseable and human-readable without (much) legacy baggage or (much) experimental / reserved-for-future-use noise.

  • source
  • parent
  • [–] 2 points 3 days ago

    Though the way it specifies raw UTC times is odd (8601 uses Z, 3339 uses -00:00), that got changed with RFC 9557 to align with 8601.

    It also supports "zoned date times", where instead of just using the UTC offset, you can also include a timezone identifier, e.g. 2020-01-01T00:00+01:00[Europe/Paris]. Useful if you're doing calculations on dates but can be ignored otherwise.

  • source
  • parent
  • load more comments (1 reply)
  • [–] 63 points 3 days ago (2 children)

    As for why it's better:

    1. It's in sort order. Even if you use it for things that don't understand dates, they sort properly because the day is the last part, month is the middle part, and year is the first part. If you include hours, minutes or seconds, the sort order is still preserved.
    2. Speaking of things that don't understand dates, because there are no slashes, you can easily use it in file names, directories, and anything else that treats slash as a special character. In addition, if you include the time part, because it uses "T" to separate the date and time, it doesn't use a space, so once again it can be easily used anywhere where a space might cause issues.
  • source
  • parent
  • hideshow 4 child comments
  • [–] 10 points 3 days ago (2 children)

    ISO is better for archiving and sorting, inarguably so. But dd-mm-yyyy is better for day to day daily life usage, where the day and month are much more important than the year.

    Both have their uses, but for different situations. mm-dd-yyyy is just batshit though.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 3 days ago (1 child)

    But dd-mm-yyyy is better for day to day daily life usage

    Uh, no.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 days ago (1 child)

    It literally just depends to what you are used to.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 days ago* (last edited 2 days ago) (1 child)

    Yes, ISO-8601 is objectively better than YYYY/DD/MM or MM/DD/YYYY or other strange formats. But, because it isn't the most widely used format, it can be less efficient when there's no danger of MM/DD vs DD/MM confusion.

    If person A is talking to person B and they're from the same culture, some culture-specific version like DD/MM/YY might be easier for them because it's what they're both used to, even if it is objectively inferior. But, if person A is talking to person C who is from a different place/culture things get more challenging because if the day of the month is 12 or under, it's hard to distinguish between DD/MM or MM/DD. Even if person C knows that person A comes from a place that does DD/MM, they don't know if person C used the native DD/MM format they're used to, or translated it to them to MM/DD because person A was trying to make things easy for person C.

    One of the advantages of the hyphens in ISO-8601, aside from them working with files, is that hyphens in dates are less common than slashes, so if someone sees 1212-11-12 they're more likely to understand that it's an ISO-formatted date. If they see 1212/11/12 it might be a MM/DD date or a DD/MM date.

  • source
  • parent
  • hideshow 2 child comments
  • load more comments (1 reply)
  • [–] 5 points 3 days ago (1 child)

    To be fair, the time separators don't behave well on all implementations of filesystem access by filename. Need to use underscores or omit them at times.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 3 days ago* (last edited 3 days ago) (1 child)

    And unlike most „forbidden characters“ for file names, the colon is actually used in NTFS: to separate the file path from the name of a named fork Alternate Data Stream.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 13 points 4 days ago (2 children)
  • [–] 2 points 3 days ago

    "While Galactus has omniscient knowledge of all current user data providers, it doesn't have future sight"

    Just use EKS to deliver the feature this quarter, and block the OmegaStar migration on "the team gets their shit together" and supports ISO timestamps.

  • source
  • parent
  • [–] 4 points 4 days ago (8 children)

    Except I can't get behind the time part of it, personally. I can see the point of doing GMT with the offset if you're working across multiple timezones, but it's overkill for situations where you aren't.

  • source
  • parent
  • hideshow 10 child comments
  • [–] 7 points 4 days ago* (2 children)

    That’s how my brother missed a train: the linux planner used GMT while the local train company planner used assumed local time…

    So I disagree

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 3 days ago

    I think we should all, as a globe, just pick one time zone and use that. I don't care if my 1:00 pm is the middle of that night. Everyone's 5:00pm will be 5:00pm. We will learn how to adjust our schedules for the master time zone.

  • source
  • parent
  • load more comments (1 reply)
  • load more comments (6 replies)
  • load more comments (28 replies)