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



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