158
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 07 Nov 2025
158 points (100.0% liked)
Programmer Humor
27264 readers
477 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
Shouldn't 2 be where 1 normally is, etc and 8 be at the top?
edit: I see you'd posted a similar one a few days ago and that had the same thing. Off by one, an evergreen programming error!
Idk to me the top position is index 0, even though it's labeled 12.
Think about it this way: when a new day begins, where are the clock hands?
Indeed, which is why 8 should be at the top.
The hours have been reassigned in reverse alphabetical order. This means the number which you hit at noon/midnight is "eight".
Except this is order by DESC, so the 'lowest' value (Two) goes on index zero, the second lowest (Twelve) goes on index 1, etc.
But that's not how clocks work - when the day starts on a normal clock it's not 1 o'clock straight away, there's an hour that happens first. The label is at the end of the hour's segment.
I did, the hour hand would be pointing at the (end of the) final hour, which is now eight. The minute hand's position is a whole different discussion.
The final hour is 8, and it would be pointing at the end of that. I don't see your problem.
Again, that's not how clocks work. The label on an analogue clock appears at the end of the hour segment. If the hour hand is halfway between two times, it's half past the lower one.
If, as you argue, two is at the top (like in OP's picture), that means that when the day starts and the hour hand is pointing up then it's already in the second hour. Half an hour later it would appear halfway between two and twelve which is an hour ahead of where it should be.