Next: , Previous: LSTAT, Up: Intrinsic Procedures


7.144 LTIME — Convert time to local time info

Description:
Given a system time value STIME (as provided by the TIME8() intrinsic), fills TARRAY with values extracted from it appropriate to the local time zone using localtime(3).
Standard:
GNU extension
Class:
Subroutine
Syntax:
CALL LTIME(STIME, TARRAY)
Arguments:

STIME An INTEGER scalar expression corresponding to a system time, with INTENT(IN).
TARRAY A default INTEGER array with 9 elements, with INTENT(OUT).

Return value:
The elements of TARRAY are assigned as follows:
  1. Seconds after the minute, range 0–59 or 0–61 to allow for leap seconds
  2. Minutes after the hour, range 0–59
  3. Hours past midnight, range 0–23
  4. Day of month, range 0–31
  5. Number of months since January, range 0–12
  6. Years since 1900
  7. Number of days since Sunday, range 0–6
  8. Days since January 1
  9. Daylight savings indicator: positive if daylight savings is in effect, zero if not, and negative if the information is not available.

See also:
CTIME, GMTIME, TIME, TIME8