this post was submitted on 24 Mar 2024
787 points (98.6% liked)

Programmer Humor

19589 readers
578 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
[–] dog@suppo.fi 9 points 7 months ago (2 children)

Yes, it's a full 24 hours, but a library doesn't use 24:00:00 to represent the last hour, it's 23:59:59. Once it hits 24:00, it rolls over to 00:00:00.

Hence my initial error of answering 23.

It's not valid, but I don't edit out erronous answers because I believe all data should be preserved, no matter how dumb it makes one look.

[–] diverging@lemmy.ml 8 points 7 months ago

00:00:00 is the 1st second of the day. 23:59:59 is the 86400th second of the day. That's 24 hours.

[–] deadbeef79000@lemmy.nz 2 points 7 months ago

It’s not valid, but I don’t edit out erronous answers because I believe all data should be preserved, no matter how dumb it makes one look.

Doing the lord's work.

I have but one up vote and you already have it.