Re: Bug #1501: date() wackiness?
| From: | Sascha Schumann | Date: | Mon, 07 Jun 1999 19:17:45 +0000 |
| Subject: | Re: Bug #1501: date() wackiness? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-6667@lists.php.net to get a copy of this message | ||
On Mon, Jun 07, 1999 at 06:11:18PM -0000, mute@snip.net wrote:
> From: mute@snip.net
> Operating system: linux
> PHP version: 3.0.9
> PHP Bug Type: Misbehaving function
> Bug description: date() wackiness?
>
> Just compiled 3.0.9, had heard of some possible issues with date() but was doing some stuff on
> my own.
>
> The following:
> echo date("F",mktime(0,0,0,1,0,0));
> Returns:
> "December"
>
> When it should return "January"
>
>
> Upon looking at the manual online i saw the example of:
>
> $epoch = date ("D F dS...",mktime(0,0,0,0,0,0));
> echo $epoch;
> Which is supposed to return: "Wed December 31st 1969..."
>
> On my system it returns: "Wed December 31st..."
You need to speficy Y in the format string for the year. Please
reread the documentation on date.
--
Regards,
Sascha Schumann
Consultant