NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/41945: calendar(1) doesn't recognize days of the week correctly sometimes
The following reply was made to PR bin/41945; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: bin/41945: calendar(1) doesn't recognize days of the week
correctly sometimes
Date: Thu, 27 Aug 2009 04:28:40 +0000
On Wed, Aug 26, 2009 at 11:25:01PM +0000, Thomas Klausner wrote:
> With the following .calendar/calendar file, consisting of just one line:
> Friday A
> Run "calendar" for Monday, July 6, 2009, i.e.
> calendar -d 0706
> Wonder why it mentions
> Friday A
> in the output.
The problem is that it's conflating days of the week with days of the
month. Friday is day 6 of the week, apparently.
The logic involved is structured with chewing gum and fixing it
robustly does not look to be entirely trivial. :-/
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index