The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Variable for User Comment gseyforth Shell Programming and Scripting 2 03-09-2007 11:01 AM
how to comment multiple lines in unix balireddy_77 Shell Programming and Scripting 3 02-19-2007 04:16 AM
remove single-line comment Icy002 High Level Programming 3 04-09-2006 05:30 AM
Need to add a comment line in a text file orakhan Shell Programming and Scripting 2 09-22-2005 05:36 PM
# comment rocker40 UNIX for Dummies Questions & Answers 6 01-07-2004 09:53 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-25-2006
Registered User
 

Join Date: Aug 2006
Location: Lyon France
Posts: 12
Comment faire une soustraction de date?

Bonjour,

Comment faire une soustraction de dates en shell ??????



j'ai 2 dates de la forme : DD/MM/YYYY HH:MM/SS

que j'aimerais soustraire, existe-t-il un format julian qui permette d'effectuer la soustraction ? ou bien faut il décomposer la date en DD, MM, YYYY etc, et soustraire chacune des unités ????

Quelqu'un peut-il m'aider ????

Merci
Reply With Quote
Forum Sponsor
  #2  
Old 08-25-2006
Registered User
 

Join Date: Feb 2005
Location: Canada
Posts: 133
Bonjour,

This forum is an English on, so all your questions need to be in English... read the rules. See these threads:

Ce forum est en anglais, toutes les questions doivent être en anglais...lis les règles. Consultes ces réponses:

script for add and subtract two hours
Time difference calculations
Date calculation script
Reply With Quote
  #3  
Old 08-25-2006
Registered User
 

Join Date: Aug 2006
Location: Lyon France
Posts: 12
How to make a substraction of dates

Sorry, sorry

So, I write my question again :

How can I manage to substract 2 dates with a script shell ?

The date format is :
DD/MM/YYYY HH(24):MI:SS


Is there a simple solution or should I write a complicated function ?

Thank you for your help
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 03:26 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