698
submitted 19 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 1 points 11 hours ago* (last edited 10 hours ago)

You 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.

[-] 9point6@lemmy.world 5 points 11 hours ago* (last edited 10 hours ago)

"Generally" is doing a lot of heavy lifting in your responses

Unless it covers all use cases, it's not good enough, because that's what we basically already have today.

We all settled on using seconds (and later smaller increments) since the 1970 epoch across systems because it makes moving data around easier.

It's better to have one source of truth value and then you derive everything else from that, keeping a 2nd counter of days (which would also need to be signed, there's no first date of all time) rather than just doing some maths when you need it isn't good system design

Edit: and surreptitiously editing "generally" out of your comments, after I mentioned it, just makes the statement false, as well as both being kinda poor etiquette and missing the point a bit

this post was submitted on 17 Sep 2026
698 points (97.8% liked)

memes

22671 readers
4009 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