Date: 12/30/02
- Next message: Derick Rethans: "Re: [PHP-DOC] build process duration time"
- Previous message: Dallas Thunder: "[PHP-DOC] Re: build process duration time"
- In reply to: Derick Rethans: "[PHP-DOC] Re: #21212 [Opn->Bgs]: strftime fails when crossing year"
- Next in thread: Derick Rethans: "Re: [PHP-DOC] Re: #21212 [Opn->Bgs]: strftime fails when crossing year"
- Reply: Derick Rethans: "Re: [PHP-DOC] Re: #21212 [Opn->Bgs]: strftime fails when crossing year"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>> 12/31/2001 falls on a monday, it's ISO week ends on Sunday 1/6/2002,
>> (six days fall in 2002, one falls in 2001) ergo %G for that date
>> returns "2002".
>>
>> This is expected behavior for %G. Try using %Y instead.
>
> Maybe we can add this nice example to the manual?
>
I'm inclined not to clutter up an already busy manual page by spelling
this out any simpler than it is already described. The definition of %G
already says that alternate prior/subsequent years may be returned *and*
makes reference to the difinition of %V which defines precisely how ISO
years are defined. It also references %Y as an alternate.
Unless others report problems with understanding this manual page as it
is, I'd rather just file this under a user-rtfm problem.
-Pollita
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Derick Rethans: "Re: [PHP-DOC] build process duration time"
- Previous message: Dallas Thunder: "[PHP-DOC] Re: build process duration time"
- In reply to: Derick Rethans: "[PHP-DOC] Re: #21212 [Opn->Bgs]: strftime fails when crossing year"
- Next in thread: Derick Rethans: "Re: [PHP-DOC] Re: #21212 [Opn->Bgs]: strftime fails when crossing year"
- Reply: Derick Rethans: "Re: [PHP-DOC] Re: #21212 [Opn->Bgs]: strftime fails when crossing year"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

