loebi-ch / jquery-clock-timepicker

A jQuery Plug-in to select the time with a clock inspired by the Android time picker.
MIT License
67 stars 22 forks source link

24hour timebar #49

Open ldijkman opened 1 year ago

ldijkman commented 1 year ago

playing with the code i am no programmer just puzzling, wasting time

see no way to select 24:00 ==00:00 wich is the start of timebar 23:59 is max

https://plnkr.co/edit/0VOS27JydW81wwZc https://plnkr.co/plunk/0VOS27JydW81wwZc

2023-06-12-180835_1920x1080_scrot

evanomnisoft commented 1 year ago

Are you unable to select 00:00 or do you specifically want 24:00? As far as I know, clocks all around the world use 00:00 and never 24:00 since they are essentially the same thing(one being the next day and the other being the previous day).

ldijkman commented 1 year ago

Are you unable to select 00:00 or do you specifically want 24:00? As far as I know, clocks all around the world use 00:00 and never 24:00 since they are essentially the same thing(one being the next day and the other being the previous day).

i have been thinking for a way if sliderhandle not is 0 then if time selected is 00:00 then 24:00 only sliderhandle0 can select 00:00

https://plnkr.co/plunk/0VOS27JydW81wwZc

2023-06-21-170202_1920x1080_scrot

https://plnkr.co/plunk/0VOS27JydW81wwZc

ldijkman commented 1 year ago

ok it is working now if sliderhandle not is 0 and select is 00:00 then 24:00

https://plnkr.co/edit/0VOS27JydW81wwZc

2023-06-21-173708_1920x1080_scrot

https://plnkr.co/edit/0VOS27JydW81wwZc

evanomnisoft commented 1 year ago

I think you should change to a datetime picker for this. Not being able to identify 00:00 of today and 00:00 of tomorrow seems like it is going to cause some bugs going forward. You can consider a datetime picker but maybe only show the time? This way you can keep track of whether which day is it on.