You are here: Re: inbuilt PHP function to check date and time. « PHP Programming Language « IT news, forums, messages
Re: inbuilt PHP function to check date and time.

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация