nietod
asked on
How does "military" time work around midnight
Not a C++ question, but...
What are the rules for "military" time (i.e 24 hour time, like used in the military and some countries.) I am curious what the earliest time is. Is it 00:00, 00:01, 1:00? What is the highest time, is it 23:59, 24:00, 24:59?
Are there any other rules I need to know to use it correctly?
What are the rules for "military" time (i.e 24 hour time, like used in the military and some countries.) I am curious what the earliest time is. Is it 00:00, 00:01, 1:00? What is the highest time, is it 23:59, 24:00, 24:59?
Are there any other rules I need to know to use it correctly?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Pr1me time: TOD things on the wires cost more, vs non-prime.
Then there's Greenwich and alternatives. Whether to use seconds, or as some do, hundreds (especially for timekeeping/payroll/accoun ting humans).
Then there's tics.
All Countries? some don't care about base 12 system, but I think in any programming area, things will work better for you if you count UP TO 1, not count up FROM one o'clock.
1:00 AM minus one minute = 0:59 AM
What to do with leading zeroes is always an issue. As you can see by example, I do not like them.
Then there's Greenwich and alternatives. Whether to use seconds, or as some do, hundreds (especially for timekeeping/payroll/accoun
Then there's tics.
All Countries? some don't care about base 12 system, but I think in any programming area, things will work better for you if you count UP TO 1, not count up FROM one o'clock.
1:00 AM minus one minute = 0:59 AM
What to do with leading zeroes is always an issue. As you can see by example, I do not like them.
In 24HR time, the day begins at 0000 and ends at 2359. There is no 2400 time.
0000 is equivalent to 12:00 AM (MIDNIGHT) and 2359 is equivalent to 11:59 PM.
It goes like this:
0000 12:00 AM DAY 1
0100 01:00 AM
....
1159 11:59 AM
1200 12:00 PM
1300 01:00 PM
....
2359 11:59 PM
0000 12:00 AM DAY 2
0000 is equivalent to 12:00 AM (MIDNIGHT) and 2359 is equivalent to 11:59 PM.
It goes like this:
0000 12:00 AM DAY 1
0100 01:00 AM
....
1159 11:59 AM
1200 12:00 PM
1300 01:00 PM
....
2359 11:59 PM
0000 12:00 AM DAY 2
ASKER
Thanks all. Especially jkr and jhance, who was clear, but clearly late.
The interesting thing is that I didn't know that this is called 'military' time...
Do computer communication protocols mean to salute the mouse and call it 'Sir'? ;-)
Do computer communication protocols mean to salute the mouse and call it 'Sir'? ;-)
ASKER
It this country it is called "military" time because even though most everything in the countery uses am/pm 12 hour time, the military does use 24 hour time since it is is short and precise.
Best example: noon is 12:00 PM
so midNight MUST BE the AM alternative, or 00:00, but many say "twenty-four hundred hours" becauce it fits the language better.
DST? Not all do it.