The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: Date aritematic
View Single Post in the UNIX and Linux 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