Re: [Veritas-bu] date calculator
2008-01-23 09:03:37
Interesting Solaris 9 answer - works on my HP-UX 11i master as well.
-----Original Message-----
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Ron Jack
(Systems Network)
Sent: Tuesday, January 22, 2008 5:47 PM
To: Stump, Bob A; veritas-bu
Subject: Re: [Veritas-bu] date calculator
----Original Message-----
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu]On Behalf Of Stump,
Bob A
Sent: Tuesday, January 22, 2008 4:16 PM
To: veritas-bu
Subject: [Veritas-bu] date calculator
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?
On a Solaris 9 master server (no "date -d", no stat command, *with*
bpdbm
;-), Eastern time:
# truss -v stat touch -t 200807070000 foo 2>&1 | grep at | tail -1 | awk
'{ print $9 }'
1215403200
# expr 558 \* 86400
48211200
# expr 1215403200 + 48211200
1263614400
# bpdbm -ctime 1263614400
1263614400 = Fri Jan 15 23:00:00 2010
HTH,
Ron
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential
information and is for the sole use of the intended recipient(s). If you are
not the intended recipient, any disclosure, copying, distribution, or use of
the contents of this information is prohibited and may be unlawful. If you have
received this electronic transmission in error, please reply immediately to the
sender that you have received the message in error, and delete it. Thank you.
----------------------------------
_______________________________________________
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>
|
- Re: [Veritas-bu] UNIX doesn't like windows "space", (continued)
- 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
|
|
|