Currently there is no way easy way to determine the week number of the year. As in Week 1, Week 2... Week 52, Week 53.

ISO 8601 states that the first day of the new week is Monday. It also states that the first week of the year is the first week that contains a Thursday, or in other words, if the Jan 01 of the year is a Friday, Saturday or Sunday then that day is Week 52 or Week 53 of the previous year and the following Monday begins Week 01. (Internally, you can write this off as Week Zero(0) unless the date passed is Jan 01, 02 or 03 and then you have to figure out how many weeks are in the previous year.)

$asctime($ctime, w) == 1 ... 53
$asctime($ctime, ww) == 01 ... 53


ISO compliant output portrays the string "2014-W09"
as in $asctime($ctime, yyyy-Www) or $asctime($ctime, yyyy) $+ -W $+ $asctime($ctime, ww)

Because this function would require knowledge of the Day-of-Year (1-366), could we also get $asctime() to return this value as well?


Well. At least I won lunch.
Good philosophy, see good in bad, I like!