Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Shouldn't it be 12:00 AM at midnight, because 12-hour clocks don't have zero? But I can agree that it's kinda messed up, knowing that hour behind it's 11 PM 🤔 Ditching this concept will prove harder than old American measurement systems.
-
sariel85313yThink of it like a zero based array.
The first hour of the day is going to be zero.
There's 24 elements (hours) to the collection (day), but the index only goes to 23. -
@LiterallyJesus 12am is what a digital clock should read for a clock in am/pm mode. Is there a library expecting 0 somewhere?
-
@Demolishun the clocks in my house for starters. Also it’s frustrating that 24 hour time counts from 0 to 23 and 12 hour time from 1 to 12
-
I had to learn the hard way that 12 AM and 12 PM can be either midnight/noon or the other way around - both ways are used. And with that in mind, can we please universally use a sane format?
-
@saucyatom ah yes, accepting 12-hour format time input from the user is basically a call for trouble 😖
-
@saucyatom well there is the 24h format. Let’s just all stick to that instead of bs 12h variation, ok?
Related Rants
Why the fuck is midnight 00:00 and midday 12:00? Every other hour is the same for Am and Pm in 12 hour time. I can’t find any explanation other than all of humanity being unable to count.
All date/time libraries must encounter this bullshit. There are so many similar levels of bullshit with everything related to time handling. Time zones, stamp formats, minimum intervals overflows are all so fucked.
rant
fuck fuck fuck fuck fuck fuck fuck fuck fuck
fuck humanity
fuck this shit
datetime