System: HP-UX
Kornshell
Perl is installed, but not POSIX
Hello,
I am calculating a future date/time. To do this I take the system date in epoch format and add to it. I now need to take the new epoch date and convert it to MMDDYYHHmm format.
I am not experiencing the problem with Perl numbering the months correctly. I need to find the date and time 10 minutes ahead, so I just modified the code you posted to:
At the time of 13:21, I received output of 0708101331
This appears to be correct . Do you see any potential problems doing it this way?
Good catch on POSIX. What I meant to say was that strftime for awk was not installed. strftime was used in another possible solution I found. Sorry for the confusion.