Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why is time 24:00 or 00:00 not possible ?

Status
Not open for further replies.

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 ?
 
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 ???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top