From:             unix-guy at pacbell dot net
Operating system: All
PHP version:      4CVS-2003-03-14 (stable)
PHP Bug Type:     Feature/Change Request
Bug description:  Return ISO 8601 year 

The date() function should provide a way to return the ISO 8601 year. As of
yesterday's snap (STABLE-20030313), the  call:

date("Y W", 1041321600) 

returns "2002 1", which could be argued is correct as it returns the year
and the ISO 8601 week, however in the context it is wrong and should
probably return "2003 1".

I think there should be a formatting option to return ISO 8601 year as
well as week to clear up any confusion.


-- 
Edit bug report at http://bugs.php.net/?id=22711&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22711&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22711&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22711&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22711&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22711&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22711&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22711&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22711&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22711&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22711&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22711&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22711&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22711&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22711&r=gnused

Reply via email to