How can I extract date and time from the ASCI file and use it for further processing ??

Dear all,
I have many .asc files from which I want to extract date and time from each file. And then, I want to calculate the elapsed time between two consecutive files. For example, I am showing you the content of one of those .asc files
ALV-5000/E-WIN Data
ALV-5000/EPP-WIN Data
Date : "21/06/2012"
Time : "17:17:22"
Samplename : ""
SampMemo(0) : ""
SampMemo(1) : ""
SampMemo(2) : ""
SampMemo(3) : ""
SampMemo(4) : ""
Temperature [K] : 298.30304
Viscosity [cp] : 0.89000
Refractive Index: 1.33200
Wavelength [nm] : 632.80000
Angle [°] : 90.00000
Duration [s] : 60
Runs : 2
Mode : "SINGLE AUTO CH0"
MeanCR0 [kHz] : 190.64098
MeanCR1 [kHz] : 0.00000
"Correlation (Multi, Averaged)"
"Lag [ms]" "Average" " 1, 182.594" " 2, 190.641" 1.25000E-004 3.07061E-001 3.02281E-001 3.11842E-001 2.50000E-004 3.46454E-001 3.41611E-001 3.51296E-001 3.75000E-004 3.41514E-001 3.36902E-001 3.46126E-001 5.00000E-004 3.38978E-001 3.33056E-001 3.44899E-001 6.25000E-004 3.36273E-001 3.29772E-001 3.42774E-001 7.50000E-004 3.34571E-001 3.31137E-001 3.38005E-001 8.75000E-004 3.34329E-001 3.30591E-001 3.38068E-001 1.00000E-003 3.32946E-001 3.29114E-001 3.36779E-001 1.12500E-003 3.30590E-001 3.26464E-001 3.34716E-001 1.25000E-003 3.30396E-001 3.26308E-001 3.34484E-001 1.37500E-003 3.28935E-001 3.27761E-001 3.30109E-001 1.50000E-003 3.25896E-001 3.20619E-001 3.31173E-001 1.62500E-003 3.28449E-001 3.23004E-001 3.33895E-001 1.75000E-003 3.26280E-001 3.20105E-001 3.32455E-001 1.87500E-003 3.29165E-001 3.25308E-001 3.33022E-001 2.00000E-003 3.25910E-001 3.23152E-001 3.28669E-001 2.25000E-003 3.22503E-001 3.18315E-001 3.26691E-001 2.50000E-003 3.23350E-001 3.19390E-001 3.27310E-001 2.75000E-003 3.22558E-001 3.18451E-001 3.26665E-001 3.00000E-003 3.20583E-001 3.15984E-001 3.25181E-001 3.25000E-003 3.19745E-001 3.14208E-001 3.25282E-001 3.50000E-003 3.18507E-001 3.15478E-001 3.21535E-001
As you can see in the third and fourth line from the top, contains date and time respectively. I want to extract this date and time for each file I have and then I want to calculate the elapsed time between two consecutive files. I have series of file which has been generated with increasing time and in total I have 100 files. Therefore, i want to calculate the elapsed time between two files. Thats is how much is the time gap between two files.
Regards and thanks Manish

Answers (0)

Categories

Asked:

on 17 Oct 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!