OT: util for relative date?
i'm looking for a util which, given an integer argument N,
can print the date of the day N days ago.
example:
$ day
2008/05/11
$ day -1
2008/05/10
$ day -12
2008/04/30
I can't figure how to get date(1) '--date=...' to do this for me.
(well actually I can but it is simply too ugly for words :*)
Does someone want to smack me with a Clue ? I suppose I should
just do it in C and be done, but the idea seems so elementary
that someone surely must have this already ?
Thanks in advance for any comments,
--
William Hunt, Portland Oregon USA |