Skip to content

PHP WTF - Week Numbers

$php -a
Interactive shell

php > echo date('W', time());
51
php > echo strftime('%W', time());
50