|
Posted by Bosconian on 02/04/06 05:59
"Kim Andrι Akerψ" <kimandre@NOSPAMbetadome.com> wrote in message
news:44ig6jF2d0dmU1@individual.net...
> Bosconian wrote:
>
> > I must be having a brain freeze because I can't figure out how to
> > display dates older than 1970.
> >
> > I have birth dates stored in MySQL as "date" data types (exp.
> > 1955-04-06). I'd like to display as "April 4, 1955".
> >
> > I've tried using date("F j, Y"), but only get "December 31, 1969".
> >
> > I'm using PHP 4.3.8. Any suggestions would be appreciated.
>
> I'm guessing that you're also using this on a Windows box?
>
> From the PHP manual for the mktime function:
> "Before PHP 5.1.0, negative timestamps were not supported under any
> known version of Windows and some other systems as well. Therefore the
> range of valid years was limited to 1970 through 2038."
>
> --
> Kim Andrι Akerψ
> - kimandre@NOSPAMbetadome.com
> (remove NOSPAM to contact me directly)
Actually no, it's Linux (MDK 10.1). Sorry, I should have mentioned that. And
yes, I'm aware of the Windows limitation and have read (and re-read) the
php.net date function docs and user comments (which is usually helpful, but
not in this case.) I even checked google.groups for clues, but no dice.
I can always roll my own output function, but I don't understand why this
isn't working.
[Back to original message]
|