You are here: Re: Options for Validating a Date Value? « PHP Programming Language « IT news, forums, messages
Re: Options for Validating a Date Value?

Posted by NC on 11/25/07 05:25

On Nov 24, 12:44 pm, Rob Wilkerson <r.d.wilker...@gmail.com> wrote:
>
> Surprisingly (at least to me), there doesn't seem to be a built-in
> function to validate a date value (like, say, is_date()). Given that,
> is there a best practice for determining whether a value is a valid
> date/time? The values I need to test will likely be unix timestamp
> values and I need to be able to distinguish them as date/time values
> from other integer/numeric values.

A Unix timestamp is an integer, so any integer is by definition a
valid Unix timestamp and thus requires no validation.

Cheers,
NC

 

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

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