note 58801 rejected from function.mktime by cece
| From: | cece@php.net | Date: | Wed, 16 Nov 2005 16:45:34 +0000 |
| Subject: | note 58801 rejected from function.mktime by cece | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98661@lists.php.net to get a copy of this message | ||
Note Submitter: Rick
----
Hi:
I have a page with a input(text) where the user put a time like (00:00) in the format of 24hrs. I
want to validate that the time format is correct...
i think i could use the mktime() to check, i think that if a user puts something like 33:99 hrs.
thes mktime will return -1, but thats not the way it works....its seems that the mktime calculates
24:59 hrs plus 09:40 could some one give me a clue how to validate this...
I hope some one understand my problem, i am not good with mi english.. :S