The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Perl: Extracting date from file name and comparing with current date MKNENI Shell Programming and Scripting 4 03-26-2008 01:01 PM
date difference muay_tb Linux 14 03-18-2008 07:08 AM
date difference piyush_movadiya Shell Programming and Scripting 2 08-11-2005 01:10 AM
date difference rajuMBT UNIX for Dummies Questions & Answers 1 08-10-2005 02:11 AM
date difference mtnbaby UNIX for Advanced & Expert Users 1 04-12-2005 07:49 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-02-2008
Registered User
 

Join Date: Apr 2008
Posts: 6
Date Difference in PERL

Hi

I have a file which has start time as my first line and End time in last line

start time: 23 May 2008 03:30:33
End time : 23 May 2008 04:30:00

I have to extract these two lines and find the time of execution for the script in PERl.
Any help appreciated

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 05-02-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
See the datecalc script in Perderabo's thread on 'Yesterday's date' in the FAQ.
There are perl routines to find differences in time.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0