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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Time Between Dates Sreejith_VK HP-UX 2 02-27-2008 02:02 AM
Files and dates mastachef UNIX for Dummies Questions & Answers 1 12-03-2007 02:12 PM
compare dates... i_priyank Shell Programming and Scripting 3 09-21-2007 01:50 AM
Linux Going Big Time and Prime Time Against Windows, UNIX (WSJ) (Addict 3D) iBot UNIX and Linux RSS News 0 06-21-2007 05:10 PM
How To Provide Time Sync Using Nts-150 Time Server On Unix Network? pesty UNIX for Advanced & Expert Users 2 03-22-2007 02:20 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-19-2008
Sreejith_VK
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Question Time Between Dates

Time Between Dates

Does anyone know how to figure out the time between two dates in HP-UX, by reading two log files start.log(starting time) and end.log(ending time)?

So if I have the content of
start.log as :
Mon, Feb 18, 2008 09:30:02 PM
&
end.log as:
Tue, Feb 19, 2008 01:25:14 AM

How can I figure out how many days, hours, minutes until start date from end date.
Any possible solution?
  #2 (permalink)  
Old 02-19-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,805
In the FAQ section, Perderabo has a date arithmetic thread. Get the code from his datecalc script that does time & date subtraction.
  #3 (permalink)  
Old 02-20-2008
Sreejith_VK
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Hi jim,

Thanks a lot for this guidance.

Regards,
Sree
  #4 (permalink)  
Old 02-20-2008
Sreejith_VK
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Smile Got Answer

Got the answer here:

Yesterdays Date/Date Arithmetic
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0