TIME (The GNU Fortran Compiler) (original) (raw)
8.272 TIME
— Time function ¶
Synopsis:
RESULT = TIME()
Description:
Returns the current time encoded as an integer (in the manner of the function time(3)
in the C standard library). This value is suitable for passing to CTIME — Convert a time into a string, GMTIME — Convert time to GMT info, and LTIME — Convert time to local time info.
This intrinsic is not fully portable, such as to systems with 32-bitINTEGER
types but supporting times wider than 32 bits. Therefore, the values returned by this intrinsic might be, or become, negative, or numerically less than previous values, during a single run of the compiled program.
See TIME8 — Time function (64-bit), for information on a similar intrinsic that might be portable to more GNU Fortran implementations, though to fewer Fortran compilers.
Class:
Function
Return value:
The return value is a scalar of type INTEGER(4)
.
Standard:
GNU extension
See also:
DATE_AND_TIME — Date and time subroutine,
CTIME — Convert a time into a string,
GMTIME — Convert time to GMT info,
LTIME — Convert time to local time info,
MCLOCK — Time function,
TIME8 — Time function (64-bit)