View Full Version : Do my programs have a "Year 2000" date problem?
R. T. (Fortran Man)
09-02-2003, 11:19 PM
Do my programs have a "Year 2000" date problem?
Lahey Support
09-02-2003, 11:20 PM
Lahey compilers include a 2-digit date subroutine called DATE() that returns the last two digits of the current system date. Changing the output of this subroutine to 4 digits would cause problems in existing code so this subroutine will not be revised. If you have code that calls the DATE subroutine, and that code assumes that the century is 1900, you may be subject to "Year 2000" problems.
Our Fortran 90 compiler, LF90, and our educational Fortran compiler, Essential LF90, include the Fortran 90 standard DATE_AND_TIME subroutine. DATE_AND_TIME returns a 4-digit date.
We recommend changing all code that uses DATE to use DATE_AND_TIME instead. DATE_AND_TIME is not included with our Fortran 77 compiler, F77L-EM/32. We recommend that EM/32 owners upgrade to LF90.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.