show date from x number of days ago

From: Thompson , Troy <tthompson_at_tmisolutions.com>
Date: Thu, 23 Mar 2000 14:00:29 -0500

Hello All,

I am running DU 4.0e, but this is more of a general unix question. Sorry if
this doesn't belong on this list.

I am looking for a way to add/subtract days from the current date for
display, without changing the actual date/time.

In Oracle I can do "sysdate - 3" to display the date from 3 days ago.
 
I am looking for a way to display the date - x number of days.

Eg. today is Thu Mar 23 I would like to a way to display Mon Mar 20 (today -
3 days) or Fri Mar 17 (today - 6 days) etc.

Is there a command or script that will do this?

Thanks in advance.


Troy Thompson
TMI Communications
(613) 742-0010 ext 4406
tthompson_at_tmisolutions.com
www.tmisolutions.com
Received on Thu Mar 23 2000 - 19:01:35 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT