To calculate the day number from a calendar date, day is restricted to the format mm/dd/yyyy. To calculate the calendar date from a day number and year, date is restricted to the format ddd/yyyy.
$ date
Wed Nov 27 09:54:32 MST 1996
$ day
332
$ day -v
day: 11/27/1996 [11 27 1996] Gregorian (366 days).
The day of the year 1996 is {332}.
$ day -w
Wednesday 332
$ day -vw
day: 11/27/1996 [11 27 1996] Gregorian (366 days).
The day of the year 1996 is {332}, Wednesday.
$ day -jvw
day: 11/14/1996 [11 14 1996] Julian (366 days).
The day of the year 1996 is {319}, Wednesday.
$ day -jwu 1/-4713
Sunday 01/01/-4713
$ day -jwu 1/4713b
Monday 01/01/4713 BC
$ day -jwu 200/4713
Friday 07/19/4713
$
The -u option turns off verbose output (-v) even if you specify it.
|
|
|
Main web site: http://www.pauahtun.org