From: Robert Miller (rmiller@SMUD.ORG)
Date: Mon Apr 21 2003 - 13:20:00 EDT
Well, you can use the 'cal' command to get a calendar for a particular
month, which includes previous years... goes back quite a ways in fact ;)
Not very useful in a script, but I'm guessing what you want doesn't
necessarily need to go in a script.
lightning:rmiller$ cal 01 1970
January 1970
Sun Mon Tue Wed Thu Fri Sat
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
lightning:rmiller$ cal 01 1776
January 1776
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
--rm
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
glh@DAIRYNET.COM
Sent: Monday, April 21, 2003 10:12 AM
To: aix-l@Princeton.EDU
Subject: Day-Of-Week Command or Script
Is there an AIX command that shows the day of the week for any given date?
For example...
If I enter: command 04/01/03
Return: Tue, April 1, 2003
If not, does anyone have a script that accomplishes this?
Thanks.
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:45 EDT