|
Posted by Patrick Brunmayr on 10/03/07 20:22
On 3 Okt., 18:38, Michael Fesser <neti...@gmx.de> wrote:
> .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
http://at2.php.net/manual/en/function.checkdate.php
Navigation:
[Reply to this message]
|