Interesting Solaris 9 answer - works on my HP-UX 11i master as well.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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@mailman.eng.auburn.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@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

Reply via email to