338
submitted 8 hours ago by cannedtuna@lemmy.world to c/memes@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] Venator 2 points 5 hours ago

Doesn't need to be 64 bit to be unsigned... And the system clock generally only goes up, so no need to represent system time as earlier than 1970...

[-] 9point6@lemmy.world 1 points 45 minutes ago

If you want computers to not have an arbitrary line in the sand when referring to the past, you need to be able to do calculations with time from before the epoch, that's why it needs to be signed.

Off the top of my head, working out the age of someone born before 1970 is going to be a calculation that happens countless times a day

[-] Venator 1 points 31 minutes ago* (last edited 31 minutes ago)

You generally don't need the precision of seconds for that sort of calculation however, so can use a signed int representing date rather than datetime for that.

this post was submitted on 17 Sep 2026
338 points (97.2% liked)

memes

22671 readers
3355 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 3 years ago
MODERATORS