The UNIX and Linux Forums  

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



Thread: Date aritematic
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-16-2007
spring_buck spring_buck is offline
Registered User
 

Join Date: Apr 2007
Posts: 2
Date aritematic

Hi,

Is there a way to write a shell script that does the following.

Calculate the difference between two dates in format
YYYY.MM.DD HH:MI:SS,sss.
The output must be in Milliseconds.

Date1 = 2007.04.16 10:54:19,428
Date2 = 2007.04.16 10:54:20,815

Date2 - Date1 = X milliseconds.

best regards,
Spring_buck
Reply With Quote
Forum Sponsor