Re: [Veritas-bu] date calculator
2008-01-22 18:30:38
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
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Veritas-bu] sniff...bpgp is gone from 6.5, (continued)
- [Veritas-bu] sniff...bpgp is gone from 6.5, Stump, Bob A
- Re: [Veritas-bu] sniff...bpgp is gone from 6.5, Ed Wilts
- [Veritas-bu] UNIX doesn't like windows "space", Stump, Bob A
- Re: [Veritas-bu] UNIX doesn't like windows "space", Ed Wilts
- Re: [Veritas-bu] UNIX doesn't like windows "space", Stump, Bob A
- Message not available
- [Veritas-bu] date calculator, Stump, Bob A
- Re: [Veritas-bu] date calculator, Jeff Lightner
- Re: [Veritas-bu] date calculator, Martin, Jonathan
- Re: [Veritas-bu] date calculator, Ed Wilts
- Re: [Veritas-bu] date calculator, Jeff Lightner
- Re: [Veritas-bu] date calculator,
Mark.Donaldson <=
- Re: [Veritas-bu] date calculator, Randy Samora
- Re: [Veritas-bu] date calculator, Ron Jack (Systems Network)
- Re: [Veritas-bu] date calculator, Jeff Lightner
- Re: [Veritas-bu] date calculator, Jeff Lightner
- Re: [Veritas-bu] date calculator, Conner, Neil
- Re: [Veritas-bu] date calculator, Steve Fogarty
- Re: [Veritas-bu] date calculator, Steve Fogarty
Re: [Veritas-bu] Error code 233 premature eof encountered, ssloh
Re: [Veritas-bu] Error code 233 premature eof encountered, ssloh
Re: [Veritas-bu] Error code 233 premature eof encountered, ssloh
|
|
|