Replace %G _with_ %Y

-- 
Jon Kriek
http://phpfreaks.com

"Ryan A" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi everyone,
> This "very simple" program is driving me nuts, heres what i am doing:
> 1.making a timestamp with the current time.
> 2.reading from the timestamp and trying to "render" the date again
>
> $ryan=strtotime ("now"); echo $ryan."<br>";
> echo strftime( "%G-%m-%a %H:%M:%S", $ryan)."<br>";
>
> This is the result:
> -10-Fri 02:29:33
>
> the month part,friday part and the time is correct....why no year?
> Where am i going wrong?
>
> Cheers,
> -Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to