Posted by Rob Wilkerson on 11/25/07 18:44
On Nov 25, 12:25 am, NC <n...@iname.com> wrote:
> A Unix timestamp is an integer, so any integer is by definition a
> valid Unix timestamp and thus requires no validation.
In my case, I wasn't really looking to validate the value as much as
distinguish it as a date/time value. After reading the feedback
everyone provided, I came to realize that it doesn't matter. It
doesn't really matter how I persist the value as long as the class
instance itself knows what to do with the value when it's retrieved.
I was over-thinking things a bit. :-)
[Back to original message]
|