The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
subtraction from date MarGur UNIX for Dummies Questions & Answers 4 06-19-2007 03:00 PM
URGENT,URGENT- Need help tape drive installation sriny UNIX for Advanced & Expert Users 3 11-16-2006 12:43 PM
date arthemetic - really urgent ragha81 Shell Programming and Scripting 6 11-06-2006 11:38 AM
date problem -- URGENT rkrgarlapati Shell Programming and Scripting 9 08-30-2006 04:00 AM
Date Subtraction in KSH mharley Shell Programming and Scripting 3 03-03-2005 08:17 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 04-04-2006
Registered User
 

Join Date: Apr 2006
Posts: 7
date subtraction(URGENT)

Hi all,

I need the date subtraction fuctionality using shell commands.
For example:
date1:Wed Apr 5 08:35:21 IST 2006
date2:Tue Apr 4 10:35:44 IST 2006
I need the date subtraction result like " 22 hours 23 seconds".

Please guide me to complete this task.
Can you please help me ASAP.

Regards,
Uday
Reply With Quote
Forum Sponsor
  #2  
Old 02-25-2008
Sreejith_VK
Guest
 

Posts: n/a
same is my question...
experts pls help us..
Reply With Quote
  #3  
Old 02-25-2008
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,683
Two different users posting similar questions. Looks like homework.
Reply With Quote
  #4  
Old 02-25-2008
Sreejith_VK
Guest
 

Posts: n/a
Hi vino,

Posts are similar but the first one was in the year "2006".

This is not a home work.

I am writing a unix program which will generate a report of a process.The process is having two logs the start.log(time of start of process )and the end.log(end time of the process).

I want in my report to show the over all time of the process for that i will have to subtract the end time from start time.
I know to fetch the data from the logs.
Now i want to subtract the two dates.
The datecalc is also not working as this invloves characters.
Request expert help.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:53 AM.


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