Re: date comparison
| From: | Richard Baskett | Date: | Mon, 29 Apr 2002 20:34:34 +0000 |
| Subject: | Re: date comparison | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95251@lists.php.net to get a copy of this message | ||
You could explode it using the '-' character.. And then compare the first
element to 2038.. If it's equal to our greater than, then you can compare
the month, and so forth..
Rick
"The most beautiful thing we can experience is the mysterious. It is the
source of all true art and all science. He to whom this emotion is a
stranger, who can no longer pause to wonder and stand rapt in awe, is as
good as dead: his eyes are closed." - Albert Einstein
> From: "Richard Fox" <rfox@sbsii.com>
> Reply-To: "Richard Fox" <rfox@sbsii.com>
> Date: Mon, 29 Apr 2002 16:29:14 -0400
> To: php-general@lists.php.net
> Subject: [PHP] date comparison
>
> I have a date string, let's call it 'date a' in the format
> "2020-10-16"
> which I want to compare to the UNIX_TIMESTAMP overflow limit ("2038-01-18").
> Obviously I can't convert date 'a' to a timestamp because it may be too
> large. How can I make this comparision without converting it to a timestamp?
>
> Thanks,
>
> Rich
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>