capturing the time stamp
- From: "pawan_test" <sridhara007@xxxxxxxxx>
- Date: 18 Jul 2006 07:55:15 -0700
Hi All,
I am working on a korn shell script.
i have a file such as:
DS.PETSCO.20060601203514.20060531.ctl_20060717124431
i have 2 problems here.
1) i have to capture the time stamp from
the above file i.e this number 20060717124431.
format of time stamp is YYYYMMDDHHMMSS.
can anyone plz let me know how do i capture the time stamp.
2) the second problem is, i have to calculate the next 27 hours
from the above time stamp.
SAY time in the above timestamp is 12:44:31 so i have to add
27 hours to this time stamp.
Note:when i add 27 hours please note that date also changes.
so i have to echo the new date and time when i add 27 hours
to the exisitng time stamp.
can anyone plx let me know how I do it.
thanks
pavi
.
- Follow-Ups:
- Re: capturing the time stamp
- From: Chris F.A. Johnson
- Re: capturing the time stamp
- Prev by Date: Re: df
- Next by Date: Re: capturing the time stamp
- Previous by thread: df
- Next by thread: Re: capturing the time stamp
- Index(es):
Relevant Pages
|