[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sh-utils 2.0
From: |
Jim Meyering |
Subject: |
Re: sh-utils 2.0 |
Date: |
27 May 2001 22:49:37 +0200 |
User-agent: |
Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.0.104 |
Jaroslaw Dziubek <address@hidden> wrote:
| Hi!
|
| I found a strange bug in date:
|
| (02:25pm)address@hidden:~]$ date --date yesterday +%w-%W
| 6-21
| (02:25pm)address@hidden:~]$ date --date today +%w-%W
| 0-21
| (02:25pm)address@hidden:~]$ date --date tomorrow +%w-%W
| 1-22
Thanks for the report, but I think that's correct --
at least in that it corresponds to the documentation for %w and %W:
>From the texinfo documentation:
`%w'
day of week (0...6) with 0 corresponding to Sunday
`%W'
week number of year with Monday as first day of week (00...53).
Days in a new year preceding the first Monday are in week zero.
----------
$ date --help|grep -i %w
%w day of week (0..6); 0 represents Sunday
%W week number of year with Monday as first day of week (00..53)
- sh-utils 2.0, Jaroslaw Dziubek, 2001/05/27
- Re: sh-utils 2.0,
Jim Meyering <=