jonthornton / jquery-timepicker

A javascript timepicker plugin for jQuery inspired by Google Calendar.
https://www.jonthornton.com/jquery-timepicker
MIT License
1.88k stars 643 forks source link

Can 24:00 have another display letter? #294

Closed ShinyChang closed 10 years ago

ShinyChang commented 10 years ago

[24:00] is confused.

People can not clearly to know what is it.

Maybe End of day, EOD, 23:59, ...etc.

vlsi commented 10 years ago

On contrary, 24:00, 25:00, and so on make more sense than "0:00, 01:00".

http://en.wikipedia.org/wiki/Day#Boundaries_of_the_day

Validity of tickets, passes, etc., for a day or a number of days may end at midnight, or closing time, when that is earlier. However, if a service (e.g. public transport) operates from for example, 6:00 to 1:00 the next day (which may be noted as 25:00), the last hour may well count as being part of the previous day (also for the arrangement of the timetable). For services depending on the day ("closed on Sundays", "does not run on Fridays", and so on) there is a risk of ambiguity. As an example, for the Nederlandse Spoorwegen (Dutch Railways), a day ticket is valid 28 hours, from 0:00 to 28:00 (that is, 4:00 the next day)

ShinyChang commented 10 years ago

Dear @vlsi,

Thanks for your reply, I complete understand 24:00, 25:00 is better in some case.

In my case, I want to setting the time of deadline.

Some people can not directly convert 24:00 into 00:00 of tomorrow.

IMO, If have an option to setting 24:00 as EOD is much better.

jonthornton commented 10 years ago

As noted in #149, "24:00" is a valid ISO8601 time value. In the USA, "EOD" typically refers to the end of the work day, not midnight. I'm sticking with the international standard on this one.

@ShinyChang you can add arbitrary options to the dropdown list using noneOption. That would be your best bet if you'd like to have "EOD" as an option.