223
submitted 2 years ago* (last edited 2 years ago) by DroneRights@lemm.ee to c/programmer_humor@programming.dev

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

you are viewing a single comment's thread
view the rest of the comments
[-] usrtrv@lemmy.ml 2 points 2 years 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 2 points 2 years 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."

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.

[-] xmunk@sh.itjust.works 2 points 2 years ago

It's alright, but real programmers use Julian UTC.

[-] v9CYKjLeia10dZpz88iU@programming.dev 0 points 2 years ago* (last edited 2 years ago)

I also really like the Bitcoin block number. It will likely be one of the most provable records of time passing, but not as convienent for tracking or converting time.

this post was submitted on 16 Nov 2023
223 points (95.5% liked)

Programmer Humor

23147 readers
980 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS