Time Picker: ISO standard for time-of-day allows value of 24:00
With respect to time of day, ISO standards allow both 00:00 and 24:00 values, to distinguish between "midnight earlier today" and "midnight tonight". Let's say a bartender works the 7pm to midnight shift. We might want to represent that in a work schedule as StartTime 19:00 and FinishTime 24:00, rather than 19:00 and 00:00. PostgreSQL database, for example, adheres to the ISO standards in this regard, and allows both values; Microsoft SQL Server, on the other hand, does not follow the ISO standard. Would be convenient if the TimePicker would accept both values, and had an alternate mode that allowed for a 24-hour clock, such that 23:45 + 15 minutes = 24:00, 00:15 minus 15 minutes = 00:00.
The bartender certainly wouldn't start work at 19:00 and finish at 00:00 "earlier today".
If I ever saw 24:00 on a plane ticket, I'd want to strangle someone. Consider it a favour to your users that 24:00 isn't supported.
While ISO8601 may clarify the difference, the probability of confusion and a penalty of 24 hours is substantial. Even the military avoids both "00:00" and "24:00": Communication Instructions General (see chapter 3 section 6.)
Also, browser support might be an issue.
The bartender certainly wouldn't start work at 19:00 and finish at 00:00 "earlier today".
Exactly. Without 24:00, there is no way to represent, unambiguously, all 24 hours of the 24-hour day. If one sees 00:00 it is not clear whether it refers to the minute before 00:01 or the minute after 23:59.
Also, in a database TimeOfDay field, without 24:00, it is impossible to create declarative rules, such as "Start Time must be earlier than Finish Time".
N.B. Time of day on a 24-hour clock is a totally different animal from time on the calendar continuum, for the latter always has a date-component to disambiguate when its time-chunk says 00:00:00.
The ISO people have it right.
Tim
From: Matt DeLuco [email protected] To: angular-ui/bootstrap [email protected] Cc: tfr888 [email protected] Sent: Wednesday, September 10, 2014 3:40 PM Subject: Re: [bootstrap] Time Picker: ISO standard for time-of-day allows value of 24:00 (#2685)
The bartender certainly wouldn't start work at 19:00 and finish at 00:00 "earlier today". If I ever saw 24:00 on a plane ticket, I'd want to strangle someone. Consider it a favour to your users that 24:00 isn't supported. While ISO8601 may clarify the difference, the probability of confusion and a penalty of 24 hours is substantial. Even the military avoids both "00:00" and "24:00": Communication Instructions General (see chapter 3 section 6.) Also, browser support might be an issue. — Reply to this email directly or view it on GitHub.
My point was that it's not at all ambiguous because you can't work a shift backwards through time.
Though I see your point with the database field, you need a way to represent "end-of-day".
I'm being presumptuous, but it seems like a trivial corner case to have end-of-day == beginning-of-day, 00:00 is always valid.
To me there's no ambiguity because time only goes in one direction.
As some one who did military service and lives my life by military time for years (To include work schedules that had me working from one day to the next through midnight). We used 00:00, no one uses 24:00. To the best of my knowledge cell phones display it as 00:00. I don't see any value in supporting 24:00.