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

15th Jan 2021, 10:46 AM
MBZH31
MBZH31 - avatar
5 Answers
+ 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
15th Jan 2021, 11:39 AM
Steve Sajeev
Steve Sajeev - avatar
+ 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
15th Jan 2021, 11:47 AM
MBZH31
MBZH31 - avatar
+ 1
Sorry I didn't understand anything pls elaborate..
15th Jan 2021, 11:48 AM
Steve Sajeev
Steve Sajeev - avatar
+ 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?
15th Jan 2021, 3:27 PM
Steve Sajeev
Steve Sajeev - avatar
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
15th Jan 2021, 11:55 AM
MBZH31
MBZH31 - avatar