Study Area Facebook粉絲團http://www.facebook.com/sataiwan
0 會員 與 1 訪客 正在閱讀本文。
echo date("W",strtotime(date("2013-12-30"))); = 01 不是 53 星期嗎
$ perl -e 'use Date::Calc qw(Week_Number); $wn = Week_Number(2013,12,30); print "$wn\n"'53
$ pythonPython 2.6.5 (r265:79063, Sep 26 2013, 18:48:04) [GCC 4.4.3] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> from datetime import *>>> date(2013, 12, 30).isocalendar()[1]1