Feb 16, 2004 #1 hos2 Programmer Joined May 6, 2002 Messages 418 Location NL I have a time field but the input 24:00 or 00:00 is not allowed ??? is that normal ?
Feb 16, 2004 #2 sleipnir214 Programmer Joined May 6, 2002 Messages 15,350 Location US 24:00:00 technically doesn't exist. 23:59:59 is the last second of the day. The next day begins at 00:00:00. You have a time field where? What's constraining the input? Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!! Upvote 0 Downvote
24:00:00 technically doesn't exist. 23:59:59 is the last second of the day. The next day begins at 00:00:00. You have a time field where? What's constraining the input? Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!!
Feb 16, 2004 Thread starter #3 hos2 Programmer Joined May 6, 2002 Messages 418 Location NL mysql is perhaps constraining the input.when I try to enter those 2 times then nothing happens. I forgot I build a function Code: function tijd($tijdvar){ $temptijd=strftime('%H:%M',strtotime($tijdvar)); if ($temptijd == "00:00") {return "";} else {return $temptijd;} } but how can I tell the difference between time 00:00 with no time entered ???? because default I see 00:00 ??? Upvote 0 Downvote
mysql is perhaps constraining the input.when I try to enter those 2 times then nothing happens. I forgot I build a function Code: function tijd($tijdvar){ $temptijd=strftime('%H:%M',strtotime($tijdvar)); if ($temptijd == "00:00") {return "";} else {return $temptijd;} } but how can I tell the difference between time 00:00 with no time entered ???? because default I see 00:00 ???
Feb 16, 2004 #4 sleipnir214 Programmer Joined May 6, 2002 Messages 15,350 Location US Don't set the default time on the page to "00:00". Set it to "" (an empty string). Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!! Upvote 0 Downvote
Don't set the default time on the page to "00:00". Set it to "" (an empty string). Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!!