]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/fortran/doc/gfortran/intrinsic-procedures/idate.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / gcc / fortran / doc / gfortran / intrinsic-procedures / idate.rst
CommitLineData
c63539ff
ML
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:: IDATE, date, current, current date
7
8.. _idate:
9
10IDATE --- Get current local time subroutine (day/month/year)
11*************************************************************
12
13.. function:: IDATE(VALUES)
14
15 ``IDATE(VALUES)`` Fills :samp:`{VALUES}` with the numerical values at the
16 current local time. The day (in the range 1-31), month (in the range 1-12),
17 and year appear in elements 1, 2, and 3 of :samp:`{VALUES}`, respectively.
18 The year has four significant digits.
19
20 :param VALUES:
21 The type shall be ``INTEGER, DIMENSION(3)`` and
22 the kind shall be the default integer kind.
23
24 :return:
25 Does not return anything.
26
27 Standard:
28 GNU extension
29
30 Class:
31 Subroutine
32
33 Syntax:
34 .. code-block:: fortran
35
36 CALL IDATE(VALUES)
37
38 Example:
39 .. code-block:: fortran
40
41 program test_idate
42 integer, dimension(3) :: tarray
43 call idate(tarray)
44 print *, tarray(1)
45 print *, tarray(2)
46 print *, tarray(3)
47 end program test_idate
48
49 See also:
3ed1b4ce 50 :ref:`DATE_AND_TIME`