This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorials:fortran [2022/03/19 09:49] papa |
tutorials:fortran [2022/03/19 09:51] papa [DATE subroutine bug] |
||
---|---|---|---|
Line 25: | Line 25: | ||
DATE is supposed to return a ten-character string representing the current system date with the format: | DATE is supposed to return a ten-character string representing the current system date with the format: | ||
- | | + | '' |
Where: | Where: | ||
- | | dd | Day of month (leading zero converted to blank) | | + | | '' |
- | | mmm | Three-character abbreviation of month (" | + | | '' |
- | | yy | Last two digits of year | | + | | '' |
- | | b | blank character | | + | | '' |
- | However, since the year 2000, the subroutine | + | However, since the year 2000, the DATE has set the '' |
This renders the year portion of DATE's output useless for most purposes. A work-around is to program a date subroutine in another language that correctly processes the TOPS-20 system date (such as MACRO assembly language) and call that subroutine from your FORTRAN source instead of the FORTRAN DATE subroutine. | This renders the year portion of DATE's output useless for most purposes. A work-around is to program a date subroutine in another language that correctly processes the TOPS-20 system date (such as MACRO assembly language) and call that subroutine from your FORTRAN source instead of the FORTRAN DATE subroutine. |