週番号
- 2017年1月1日は日曜日なので「月曜始まり」or「日曜始まり」で週番号が変わる

MySQL
- MySQLのマニュアルには日曜始まり、月曜始まりがある。
select
date_format('2017-01-01', '%X%V') as nichiyou_start, -- 201701
date_format('2017-01-01', '%x%v') as getsuyou_start; -- 201652
PHP
- PHPのマニュアルには月曜始まりしかない
$this->assertEquals('201652', \Carbon\Carbon::parse('2017-01-01')->format('oW'));