Veritas-bu

Re: [Veritas-bu] date calculator

2008-01-22 18:30:38
Subject: Re: [Veritas-bu] date calculator
From: <Mark.Donaldson AT cexp DOT com>
To: <veritas-bu AT mailman.eng.auburn DOT edu>
Date: Tue, 22 Jan 2008 16:13:36 -0700
That's because it's the GNU date command which allows offsets of all varieties.
 
gdate --date="now -7 days" "+%m/%d/%Y %H:%M:%S"
 
The GNU commands are compiled for most OS's (I have a Sol 8 version) and I just soft-linked "gdate" to the GNU date command so I can call system date with "date" and GNU date with, oddly, "gdate".
 
Lots of things it can do (except back-calculate from Unix epoch time I think).
 

From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Ed Wilts
Sent: Tuesday, January 22, 2008 2:48 PM
To: Stump, Bob A
Cc: veritas-bu
Subject: Re: [Veritas-bu] date calculator

On Jan 22, 2008 3:16 PM, Stump, Bob A <Bob.A.Stump AT fnis DOT com> wrote:

Does anyone know how I can recalculate what a date would be if I added 558 days to it?

For instance, what date would it be 558 days after July 7, 2008?

In a Linux bash shell:

[ewilts@corpftp ewilts]$ date -d "7/7/2008 +558 days"
Sat Jan 16 00:00:00 CST 2010

   .../Ed

--
Ed Wilts, Mounds View, MN, USA
mailto:ewilts AT ewilts DOT org
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu