9.123 GMTIME — Convert time to GMT info
- Description:
-
Given a system time value TIME (as provided by the
TIME8
intrinsic), fills VALUES with values extracted from it appropriate to the UTC time zone (Universal Coordinated Time, also known in some countries as GMT, Greenwich Mean Time), usinggmtime(3)
. - Standard:
-
GNU extension
- Class:
-
Subroutine
- Syntax:
-
CALL GMTIME(TIME, VALUES)
- Arguments:
-
TIME An INTEGER
scalar expression corresponding to a system time, withINTENT(IN)
.VALUES A default INTEGER
array with 9 elements, withINTENT(OUT)
. - Return value:
-
The elements of VALUES are assigned as follows:
- Seconds after the minute, range 0–59 or 0–61 to allow for leap seconds
- Minutes after the hour, range 0–59
- Hours past midnight, range 0–23
- Day of month, range 0–31
- Number of months since January, range 0–12
- Years since 1900
- Number of days since Sunday, range 0–6
- Days since January 1
- Daylight savings indicator: positive if daylight savings is in effect, zero if not, and negative if the information is not available.
- See also:
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.4.0/gfortran/GMTIME.html