5

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.

Comments
  • 2
    Dates (and time) is hard. It just is.
  • 1
    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.
  • 1
    Think 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.
  • 1
    @sariel My point is that Am starts at 0 and Pm doesn’t in 12 hour time
  • 2
    @LiterallyJesus 12am is what a digital clock should read for a clock in am/pm mode. Is there a library expecting 0 somewhere?
  • 2
    @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
  • 2
    @LiterallyJesus In groups of antemortem and postmortem, it's from 12 to 11 🤷
  • 1
    @vintprox and who decided to call it before death and after death?!
  • 0
    @stop it's to coroner...
  • 1
    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?
  • 1
    @saucyatom ah yes, accepting 12-hour format time input from the user is basically a call for trouble 😖
  • 6
    @saucyatom well there is the 24h format. Let’s just all stick to that instead of bs 12h variation, ok?
  • 1
    @100110111 All hail ISO 8601
  • 0
    The Problem with Time & Timezones - Computerphile

    https://youtube.com/watch/...
Add Comment