this post was submitted on 31 Dec 2024
342 points (97.0% liked)

Programmer Humor

32831 readers
532 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Madrigal@lemmy.world 59 points 1 week ago (9 children)

Imagine thinking that’ll be the biggest date-related computing problem for a galactic society.

If you really want to make programmers despair, point out:

  • massive variations in day, month and year lengths on different worlds.
  • some worlds may not have “months” (no moons, or many moons).
  • ambiguous definition of “year” for multi-star systems.
  • days may be longer than years (hello Venus).
  • communication latency across interstellar distances.
  • tine dilation.
[–] tetris11@lemmy.ml 18 points 1 week ago* (last edited 1 week ago)

That's easy. We'd just use Greg time.

Greg's age and mood is highly deterministic, and he has atoms in his body present from the big bang. His sense of time varies, and seems to accelerate as he gets older, and he will tell you about it with extreme detail down to either 2 decimal places or 3 beers. If you call him up and ask him what time it is, the degree of the obscenities used in his reply is usually a good enough correction coefficient when calling over long distances.

Also two of his kids hate him, and his current wife is thinking of leaving him; all countable metrics that one can use to ascertain what stage in his life Greg is at, and thus what the local date/time in your area is, based on all the above Greg stats.

[–] Dhs92@programming.dev 18 points 1 week ago

Don't we technically already have to account for time dilation for things like GPS satellites

[–] UnsavoryMollusk@lemmy.world 9 points 1 week ago

Relief point: we will still be using unix timestamp.

Anxious point: we will still be using unix timestamp.

[–] xmunk@sh.itjust.works 8 points 1 week ago

We're all just going to use tz_database and turn the maintainer into a ghost trapped in the machine for all of eternity.

[–] FourPacketsOfPeanuts@lemmy.world 7 points 1 week ago (1 children)

tine dilation

Holds up fork and squints at it

[–] Madrigal@lemmy.world 1 points 1 week ago

It's what happens when James uses the good dining forks to unjam the cupboard door again.

[–] kameecoding@lemmy.world 5 points 1 week ago (1 children)

I will just rely on ISO 8602 to introduce a universal time format

[–] Madrigal@lemmy.world 1 points 1 week ago

Then your only challenge will be converting to and from human-friendly formats and cleansing user input. Easy.

[–] lord_ryvan@ttrpg.network 4 points 1 week ago (1 children)

days may be longer than years (hello Venus).

Hello back

[–] Madrigal@lemmy.world 1 points 1 week ago

Well, that was certainly the peak of human artistic achievement.

[–] waspentalive@lemmy.one 3 points 1 week ago

Nah, all this is solved with star-dates. One of the Federation's crowning achievements - Warp Drive is small potatoes compared to getting hundreds of delegates from as many different worlds to all agree on one calendar system that is not based on their own world's orbit around its primary.. Diplomatic impossibility, but they managed it.

[–] 4z01235@lemmy.world 3 points 1 week ago

Also, interplanetary timezones and leaps.