Veritas-bu

Re: [Veritas-bu] date calculator

2008-01-23 09:03:37
Subject: Re: [Veritas-bu] date calculator
From: "Jeff Lightner" <jlightner AT water DOT com>
To: "Ron Jack \(Systems Network\)" <rjack AT nando DOT com>, "Stump, Bob A" <Bob.A.Stump AT fnis DOT com>, "veritas-bu" <veritas-bu AT mailman.eng.auburn DOT edu>
Date: Wed, 23 Jan 2008 08:48:36 -0500
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