[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: RE: [PHP] Date conversion problems
From: Liam.Gibbs () dfait-maeci ! gc ! ca
Date: 2002-08-27 12:46:11
[Download RAW message or body]
> mktime generally only works thru 2037. Why not create an array of the
> months, and index in:
> $months = array('Jan','Feb',....);
> $enddate = explode("-", $datereuslt[0]);
> $finaldate = $months[$enddate-1] . "-$enddate[1]";
That's what I thought I might have to do. It's an alternative, but a clunky
one. Thanks Matt.
<<mktime() will not work beyond mid-August of 2038 on 32-bit machines.>>
And there's the confirmation from Richard. It actually goes back to 1969.
Thanks also to David and anyone else I missed. I'm going to try the MySQL
date format that Richard and Matt suggested. But, if all else fails, I'll go
with the array that they suggested, as well.
Thanks again, guys.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic