Calculating week numbers in PHP using Year, is it a bug? -
It's weird, I do not know that this is a bug, but please, someone tries to do it.
resonance date ("ww", strotom ("2014W05-1 week");
Result 2014 -04 will be, year-to-week, no problem at all. But now, try it:
Why this is 2013-01, why 2013? What's wrong? It should be 2014-01, okay?
Am I doing wrong? Am? Is this a bug?
My PHP version: 5.4.22
Y OS ISO-8601 year number
So if you do this then
date of reproduction ( "OW", Strottom ("2014 W05-1 week"). "
Reverberation Date (" OW ", stronteme (" 2014W02-1 week "));
You will get
2014-04 2014-01
Edit Jasper
Because one date is a moment rather than one week, you request a week and the first moment of that week The Rapt. According to the standards, the number of weeks is based on the year in which the year is Thursday. As such, the number of weeks is 1, but the date is still in 2013.
Comments
Post a Comment