Yes, someone actually did this and I found it running on our server

  • usrtrv@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Throwing UTC everywhere doesn’t solve comparisons around leap seconds. I’m sure they’re other issues with this method, but this is kinda the point of “just use a library”. Then it’s someone else’s problem.

    • Kogasa@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I’m a .NET dev, I don’t have a concept of “just use a library.” Everything is a library. I don’t mean “using int for datetimes is ok as long as you label it utc,” I just mean “don’t deal with time zones.”

    • v9CYKjLeia10dZpz88iU@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Unix is the easiest format I’ve used. It’s easy to parse, it’s consistent, there’s not usually competing unix like formats, it converts perfectly to other time formats, most file explorers can immediately sort it correctly, and it’s clearly the date from which the universe spawned into existence.