Friday, January 04, 2008

Different behavior of idate() in RHEL5 and Solaris 10.

The fortran function idate() return different array in RHEL5 and Solaris.
For JAN-04-2008, in RHEL5, it returns:
4 1 8
In Solaris 10 X86, it returns:
4 1 2008

So, problems may arise if you do not pad zeros ahead the number. To get to no-blank filename, you should use "I2.2,I2.2,I4.4" to get a formatted date string.

No comments: