Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/cal



Module Name:    src
Committed By:   atatat
Date:           Thu Jul 24 01:19:46 UTC 2003

Modified Files:
        src/usr.bin/cal: cal.1 cal.c

Log Message:
Reform the Gregorian Reform.  This means that the previously hard
coded meaning of 1752/09/03 is only a default, and that everything is
now calculated dynamically.

You can now use -R reform-spec to specify an alternate reform.  Read
the fine (new) man page for details on this.  There is also a new -r
option which will make cal print the month (or year, if -y is also
given) in which the Gregorian Reform started.  I say started only
because if you apply the reform at 9999/1/22, a chunk of January is
knocked out, February and March are missing entirely, and April starts
on the 5th.  The use of -r with -y does pretty much what you'd expect.

Also, implement -d day-of-week so that you can tell cal to start the
week on something other that a Sunday.  This addresses PR bin/8539 at
long last.


To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 src/usr.bin/cal/cal.1 src/usr.bin/cal/cal.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index