开发者

get week for 01-01-2011 using strftime returns 00

开发者 https://www.devze.com 2023-01-30 18:37 出处:网络
$w = strftime(\"%W\",mktime(0,0,0,1,1,2011)); echo 开发者_运维技巧$w; returns \"00\" Why?The first Monday of 2011 is the 3rd, therefore the 1st and 2nd are in week 0.
$w = strftime("%W",mktime(0,0,0,1,1,2011));    
echo 开发者_运维技巧$w;

returns "00"

Why?


The first Monday of 2011 is the 3rd, therefore the 1st and 2nd are in week 0.

0

精彩评论

暂无评论...
验证码 换一张
取 消