The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > 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 07:00 PM
URGENT,URGENT- Need help tape drive installation sriny UNIX for Advanced & Expert Users 3 11-16-2006 03:43 PM
date arthemetic - really urgent ragha81 Shell Programming and Scripting 6 11-06-2006 02:38 PM
date problem -- URGENT rkrgarlapati Shell Programming and Scripting 9 08-30-2006 08:00 AM
Date Subtraction in KSH mharley Shell Programming and Scripting 3 03-03-2005 11:17 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 04-05-2006
uday123 uday123 is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 22
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
  #2 (permalink)  
Old 02-25-2008
Sreejith_VK
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
same is my question...
experts pls help us..
  #3 (permalink)  
Old 02-25-2008
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Two different users posting similar questions. Looks like homework.
  #4 (permalink)  
Old 02-25-2008
Sreejith_VK
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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.
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:14 PM.


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