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