mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 21:01:29 +08:00
re PR fortran/78545 (Possible correction to online LTIME documentation)
2016-12-18 Dominique d'Humieres <dominiq@lps.ens.fr> PR fortran/78545 * intrinsic.texi: Fix documentation for GMTIME and LTIME. * intrinsics/date_and_time.c: Fix comments for GMTIME and LTIME. From-SVN: r243785
This commit is contained in:
parent
707024b2e8
commit
1feb2bedae
@ -1,3 +1,8 @@
|
||||
2016-12-18 Dominique d'Humieres <dominiq@lps.ens.fr>
|
||||
|
||||
PR fortran/78545
|
||||
* intrinsic.texi: Fix documentation for GMTIME and LTIME.
|
||||
|
||||
2016-12-18 Janus Weil <janus@gcc.gnu.org>
|
||||
|
||||
PR fortran/78848
|
||||
|
@ -7157,11 +7157,16 @@ See @code{GETPID} for an example.
|
||||
|
||||
@table @asis
|
||||
@item @emph{Description}:
|
||||
Given a system time value @var{TIME} (as provided by the @code{TIME8}
|
||||
Given a system time value @var{TIME} (as provided by the @code{TIME}
|
||||
intrinsic), fills @var{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), using @code{gmtime(3)}.
|
||||
|
||||
This intrinsic routine is provided for backwards compatibility with
|
||||
GNU Fortran 77. In new code, programmers should consider the use of
|
||||
the @ref{DATE_AND_TIME} intrinsic defined by the Fortran 95
|
||||
standard.
|
||||
|
||||
@item @emph{Standard}:
|
||||
GNU extension
|
||||
|
||||
@ -7186,11 +7191,11 @@ The elements of @var{VALUES} are assigned as follows:
|
||||
seconds
|
||||
@item Minutes after the hour, range 0--59
|
||||
@item Hours past midnight, range 0--23
|
||||
@item Day of month, range 0--31
|
||||
@item Number of months since January, range 0--12
|
||||
@item Day of month, range 1--31
|
||||
@item Number of months since January, range 0--11
|
||||
@item Years since 1900
|
||||
@item Number of days since Sunday, range 0--6
|
||||
@item Days since January 1
|
||||
@item Days since January 1, range 0--365
|
||||
@item Daylight savings indicator: positive if daylight savings is in
|
||||
effect, zero if not, and negative if the information is not available.
|
||||
@end enumerate
|
||||
@ -7841,6 +7846,11 @@ current local time. The day (in the range 1-31), month (in the range 1-12),
|
||||
and year appear in elements 1, 2, and 3 of @var{VALUES}, respectively.
|
||||
The year has four significant digits.
|
||||
|
||||
This intrinsic routine is provided for backwards compatibility with
|
||||
GNU Fortran 77. In new code, programmers should consider the use of
|
||||
the @ref{DATE_AND_TIME} intrinsic defined by the Fortran 95
|
||||
standard.
|
||||
|
||||
@item @emph{Standard}:
|
||||
GNU extension
|
||||
|
||||
@ -8650,11 +8660,16 @@ end program test_nan
|
||||
|
||||
@table @asis
|
||||
@item @emph{Description}:
|
||||
@code{IDATE(VALUES)} Fills @var{VALUES} with the numerical values at the
|
||||
@code{ITIME(VALUES)} Fills @var{VALUES} with the numerical values at the
|
||||
current local time. The hour (in the range 1-24), minute (in the range 1-60),
|
||||
and seconds (in the range 1-60) appear in elements 1, 2, and 3 of @var{VALUES},
|
||||
respectively.
|
||||
|
||||
This intrinsic routine is provided for backwards compatibility with
|
||||
GNU Fortran 77. In new code, programmers should consider the use of
|
||||
the @ref{DATE_AND_TIME} intrinsic defined by the Fortran 95
|
||||
standard.
|
||||
|
||||
@item @emph{Standard}:
|
||||
GNU extension
|
||||
|
||||
@ -9635,10 +9650,15 @@ To stat an open file: @ref{FSTAT}, to stat a file: @ref{STAT}
|
||||
|
||||
@table @asis
|
||||
@item @emph{Description}:
|
||||
Given a system time value @var{TIME} (as provided by the @code{TIME8}
|
||||
Given a system time value @var{TIME} (as provided by the @code{TIME}
|
||||
intrinsic), fills @var{VALUES} with values extracted from it appropriate
|
||||
to the local time zone using @code{localtime(3)}.
|
||||
|
||||
This intrinsic routine is provided for backwards compatibility with
|
||||
GNU Fortran 77. In new code, programmers should consider the use of
|
||||
the @ref{DATE_AND_TIME} intrinsic defined by the Fortran 95
|
||||
standard.
|
||||
|
||||
@item @emph{Standard}:
|
||||
GNU extension
|
||||
|
||||
@ -9663,11 +9683,11 @@ The elements of @var{VALUES} are assigned as follows:
|
||||
seconds
|
||||
@item Minutes after the hour, range 0--59
|
||||
@item Hours past midnight, range 0--23
|
||||
@item Day of month, range 0--31
|
||||
@item Number of months since January, range 0--12
|
||||
@item Day of month, range 1--31
|
||||
@item Number of months since January, range 0--11
|
||||
@item Years since 1900
|
||||
@item Number of days since Sunday, range 0--6
|
||||
@item Days since January 1
|
||||
@item Days since January 1, range 0--365
|
||||
@item Daylight savings indicator: positive if daylight savings is in
|
||||
effect, zero if not, and negative if the information is not available.
|
||||
@end enumerate
|
||||
|
@ -1,3 +1,8 @@
|
||||
2016-12-18 Dominique d'Humieres <dominiq@lps.ens.fr>
|
||||
|
||||
PR fortran/78545
|
||||
* intrinsics/date_and_time.c: Fix comments for GMTIME and LTIME.
|
||||
|
||||
2016-12-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR fortran/78622
|
||||
|
@ -456,11 +456,11 @@ idate_i8 (gfc_array_i8 *__values)
|
||||
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
|
||||
4. Day of month, range 1-31
|
||||
5. Number of months since January, range 0-11
|
||||
6. Years since 1900
|
||||
7. Number of days since Sunday, range 0-6
|
||||
8. Days since January 1
|
||||
8. Days since January 1, range 0-365
|
||||
9. Daylight savings indicator: positive if daylight savings is in effect,
|
||||
zero if not, and negative if the information isn't available. */
|
||||
|
||||
@ -548,11 +548,11 @@ gmtime_i8 (GFC_INTEGER_8 * t, gfc_array_i8 * tarray)
|
||||
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
|
||||
4. Day of month, range 1-31
|
||||
5. Number of months since January, range 0-11
|
||||
6. Years since 1900
|
||||
7. Number of days since Sunday, range 0-6
|
||||
8. Days since January 1
|
||||
8. Days since January 1, range 0-365
|
||||
9. Daylight savings indicator: positive if daylight savings is in effect,
|
||||
zero if not, and negative if the information isn't available. */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user