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 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

 

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

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