Reply to Re: Options for Validating a Date Value?

Your name:

Reply:


Posted by Norman Peelman on 11/25/07 01:08

Rob Wilkerson wrote:
> On Nov 24, 3:56 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> Unix timestamps are just integers. You can't differentiate them.
>
> Yeah, I was hoping that you all (as seasoned php developers) had
> figured out some fancy technique for identifying one as a date value
> rather than as an integer. :-) Guess I'll have to come up with a new
> plan...
>
> Thanks.

Can you tell what your INT data is going to be? Can you tell what is
the oldest date is going to be? You could possibly hack it if your
integer data falls within a certain range you could make some assumptions:

If each of your INTeger data is less than 1000000000 (ten digits, 1
billion) which is a unix timestamp equal to Sept. 08, 2001 @ approx
9:46pm, then you could possibly assume that anything above this would be
a timestamp.

Ugly I know...

Norm

[Back to original 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

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