Date comparison in AIX 5 - TechRepublic
General discussion
February 1, 2005 at 06:34 AM
stevelil

Date comparison in AIX 5

by stevelil . Updated 21 years, 4 months ago

what is the best way to perform comparison on dates for comparison in AIX 5.
e.g.
typeset -i lastrundate=050131
adding 7 to this would be 050138 (need it to be 050207 or this will compute to less than 050201)

[[ (${lastrundate} + 7) -ge ${currentdate} ]]

This discussion is locked

All Comments