Given a system time value TIME (as provided by the TIME — Time function intrinsic), fills VALUES with values extracted from it appropriate to the local time zone using localtime(3).
This intrinsic routine is provided for backwards compatibility with GNU Fortran 77. In new code, programmers should consider the use of the DATE_AND_TIME — Date and time subroutine intrinsic defined by the Fortran 95 standard.
GNU extension
Subroutine
CALL LTIME(TIME, VALUES)
| TIME | An INTEGER scalar expression corresponding to a system time, with INTENT(IN). |
| VALUES | A default INTEGER array with 9 elements, with INTENT(OUT). |
The elements of VALUES are assigned as follows:
DATE_AND_TIME — Date and time subroutine, CTIME — Convert a time into a string, GMTIME — Convert time to GMT info, TIME — Time function, TIME8 — Time function (64-bit)
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gfortran/LTIME.html