Subject: | Not clear what type of week number is returned |
The documentation doesn't make clear whether this is supposed to return the week numbers according to ISO 8601's scheme, or some other one.
If it is meant to be ISO 8601, then
(a) the documentation should say that, and
(b) you have a bug, where sometimes the wrong week number is returned.
I wrote a script to show dates where WeekOfYear gets it wrong:
https://gist.github.com/neilbowers/9408257
Cheers,
Neil