0
Object time over 24h
Hi, I want use an object time in my webpage but it must allow a value over 23:59:59 because that is a delay, and still control format on minutes and seconds values. À solution ? Thank you Best regards
5 odpowiedzi
+ 1
From what u said If I am right...
You want to display 24:00:00 ...
Am I right?
If yes, then use an if statement and check if it is 0:00:00 then replace it to 24:00:00...
It will work like this:
23:59:58
23:59:59
24:00:00
00:00:01
00:00:02
+ 1
Not really
For example, I worked 38:46:30 last week. If I write this value, on blur, thé new value is 14:46:30
(38-24=14)
This object can be the sum of hours of work during a week or a month
+ 1
Sorry I didn't understand anything pls elaborate..
+ 1
I think this is bcs the time '38:46:30' is not valid..
Please tell me why you want to write 38:46:30 so I can give you the best solution...
did you want to add 1 day to user input?
0
I want to write in an input tag the value 38:46:30
So, when the object lost the focus, the value change and become 14:46:30
If input tag type is "time", it's impossible to write 38