【发布时间】:2017-11-30 09:38:21
【问题描述】:
我想使用 bash 获取周数。
date 的 man 条目显示以下内容:
%V ISO week number, with Monday as first day of week (01..53)
%W week number of year, with Monday as first day of week (00..53)
有什么区别?
这是我得到的输出:
$ date "+%W"
48
$ date "+%V"
48
【问题讨论】:
-
我投票决定将此问题作为题外话结束,因为“正确”的答案实际上是在维基百科上寻找“ISO 周数”时给出的......
标签: date gnu-coreutils