获取星期几。 接受0(星期日)到6(星期六)的数字。如果超过这个范围,将持续到几周。
int week([int? d]) { if (d != null) { day((d - $W) * 7); } return $W; }