capturing the time stamp



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

.



Relevant Pages

  • capturing the time stamp
    ... I am working on a korn shell script. ... format of time stamp is YYYYMMDDHHMMSS. ... can anyone plz let me know how do i capture the time stamp. ...
    (comp.unix.programmer)
  • capturing the time stamp
    ... I am working on a korn shell script. ... format of time stamp is YYYYMMDDHHMMSS. ... can anyone plz let me know how do i capture the time stamp. ...
    (comp.unix.shell)
  • RE: To Capture the time stamp on entry of a value in cell.
    ... Private Sub Worksheet_Change ... I am trying to capture the time on the entry of the cell in column A. ... I want to capture time stamp for each entry of person code in col A ...
    (microsoft.public.excel.programming)
  • Re: capturing the time stamp
    ... I am working on a korn shell script. ... format of time stamp is YYYYMMDDHHMMSS. ... can anyone plz let me know how do i capture the time stamp. ...
    (comp.unix.shell)
  • Re: Login Page or Screen
    ... You may create an Access database, with a form created, where a field's ... > How do i create a login page to capture date and time for students? ... Thought is to have student access page with a username ... > password and the date and time stamp would automatically be captured along ...
    (microsoft.public.office.misc)