summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authordominiq <dominiq@138bc75d-0d04-0410-961f-82ee72b054a4>2016-12-18 18:03:36 +0000
committerdominiq <dominiq@138bc75d-0d04-0410-961f-82ee72b054a4>2016-12-18 18:03:36 +0000
commitdc31fb88b706a67b73318bfa48e9c47bae56d6f2 (patch)
tree9d71fa06124e45fd7a11801b327484521a66a4a1 /libgfortran
parentda230ae16219fe93ebb499895b5662d17f62114b (diff)
downloadgcc-dc31fb88b706a67b73318bfa48e9c47bae56d6f2.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243785 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/intrinsics/date_and_time.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index bcd8cd3e24f..a53cc2d7073 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -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
diff --git a/libgfortran/intrinsics/date_and_time.c b/libgfortran/intrinsics/date_and_time.c
index 66bcd6f8b2b..5e1f1608af2 100644
--- a/libgfortran/intrinsics/date_and_time.c
+++ b/libgfortran/intrinsics/date_and_time.c
@@ -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. */