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

Programmer Humor

19564 readers
1517 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
[–] [email protected] 15 points 7 months ago* (last edited 7 months ago) (4 children)

Except if there was only one zone of time that would be hell to program too because then you would need to check for different times of day for different locations. I think programming is just difficult lol

[–] [email protected] 6 points 7 months ago (2 children)

you would need to check for different times of day for different locations

You have to do that now with time zones anyway.

[–] [email protected] 9 points 7 months ago* (last edited 7 months ago) (1 children)

I think the comment was more about phases of the day. Like for example, your phone might come pre-installed with a sleep mode from 23:00 to 06:00, which roughly fits for most users. Should we use UTC everywhere, then you'd have to have different presets for different parts of the globe.

Or say you wake up just a bit after sunrise at 7am everyday and you fly across the continent for vacation. Now you have to change all your alarms because sunrise is suddenly at 3am.

Or what if you're writing a book and you want to tell the reader what time it is: 15:00 will mean something else to readers around the world. And while you could attempt to cover it up with "15:00 in the afternoon", there will still be a disconnect between your words/intentions and what the reader pictures.

UTC would be a bliss for programming and scheduling events in this funny little globalized world, but as animals we still base our days on the burning fireball in the sky and removing that connotation from our timekeeping messes with linguistics and clear communication.

I don't think the system we have is perfect either, but I don't think employing UTC everywhere is the way and I don't have other suggestion either.

[–] [email protected] 9 points 7 months ago

and then boom congratulations you just reinvented time zones except worse, & everyone's gonna do their own way and they're all gonna be slightly different.

but at least your code will be simpler. oh, wait...

load more comments (1 replies)