Posted by Michael Fesser on 10/03/07 16:38
..oO(wizard)
>Is there any such function to check for a valid time like something in
>hh:mm:ss format? If not, can we use any existing date and time
>functions to validate a time string like '15:45:56'?
It's easy enough to write such a function. You could split the string
with explode() and then check its three parts for the correct ranges
(0-23, 0-59, 0-59).
Micha
[Back to original message]
|