tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* show date from x number of days ago
@ 2000-03-23 19:00 Thompson , Troy
  0 siblings, 0 replies; only message in thread
From: Thompson , Troy @ 2000-03-23 19:00 UTC (permalink / raw)
  To: tru64-unix-managers

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@tmisolutions.com
www.tmisolutions.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-03-23 19:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-23 19:00 show date from x number of days ago Thompson , Troy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox