]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/fortran/doc/gfortran/intrinsic-procedures/time.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / gcc / fortran / doc / gfortran / intrinsic-procedures / time.rst
1 ..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6 .. index:: TIME, time, current, current time
7
8 .. _time:
9
10 TIME --- Time function
11 **********************
12
13 .. function:: TIME()
14
15 Returns the current time encoded as an integer (in the manner of the
16 function ``time(3)`` in the C standard library). This value is
17 suitable for passing to :ref:`CTIME`, :ref:`GMTIME`, and :ref:`LTIME`.
18
19 :return:
20 The return value is a scalar of type ``INTEGER(4)``.
21
22 Standard:
23 GNU extension
24
25 Class:
26 Function
27
28 Syntax:
29 .. code-block:: fortran
30
31 RESULT = TIME()
32
33 See also:
34 :ref:`DATE_AND_TIME`,
35 :ref:`CTIME`,
36 :ref:`GMTIME`,
37 :ref:`LTIME`,
38 :ref:`MCLOCK`,
39 :ref:`TIME8`