Nov 6, 2003 #1 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
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
Nov 6, 2003 #2 vgersh99 Programmer Jul 27, 2000 2,146 US convert it to epoch time, do your math, convert the result back in the desired format. vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
convert it to epoch time, do your math, convert the result back in the desired format. vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
Nov 6, 2003 #3 olded Programmer Oct 27, 1998 1,065 US Here's an article on doing data arithmetic: http://www.samag.com/documents/s=8284/sam0307b/0307b.htm Upvote 0 Downvote