this post was submitted on 03 Apr 2024
1085 points (96.2% liked)

Programmer Humor

19522 readers
96 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Zannsolo@lemmy.world 1 points 7 months ago (1 children)

No UTC. Convert/use UTC on the way in and covert to local time for the user or local time of the noun the date is for in the display.

[โ€“] jabjoe@feddit.uk 1 points 7 months ago

Any UTC type is going to do native time and convert for display.

But with native time directly, you can just an int64 with loads of space for fine resolution via multiplication.

Storing time broken up into separate units is crazy.