开发者

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

$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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜