Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dates and Times

Status
Not open for further replies.

SOL9MAN

Technical User
Mar 11, 2003
12
GB
Is there a way in Unix Scripting to carry out mathematical functions on dates.

I need to add 120 minutes to a YYYYMMDDHHMM date string that i derived from the Unix date function.

regards
 
convert it to epoch time, do your math, convert the result back in the desired format.

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top