summaryrefslogtreecommitdiffstats
path: root/gcc/f/intdoc.texi
diff options
context:
space:
mode:
authorfx <fx@138bc75d-0d04-0410-961f-82ee72b054a4>1998-07-06 08:29:31 +0000
committerfx <fx@138bc75d-0d04-0410-961f-82ee72b054a4>1998-07-06 08:29:31 +0000
commit49e76037a08706764ae335f96890a3e72a7efef8 (patch)
treece55691e651390e978399527ff6b400c8c52e5f0 /gcc/f/intdoc.texi
parent32d09b9192c827f3ccd846a61121faaf2f622dc9 (diff)
downloadppe42-gcc-49e76037a08706764ae335f96890a3e72a7efef8.tar.gz
ppe42-gcc-49e76037a08706764ae335f96890a3e72a7efef8.zip
1998-07-05 Dave Love <d.love@dl.ac.uk>
* intdoc.in: Add entry for DATE_AND_TIME. * intrin.def: Add implementation for DATE_AND_TIME. Make second and third args of SYSTEM_CLOCK optional. * com.c (ffecom_expr_intrinsic_): New case for DATE_AND_TIME. * com-rt.def (FFECOM_gfrtSYSTEM_CLOCK): Call G77_system_clock_0, not system_clock_. (FFECOM_gfrtDATE_AND_TIME): New DEFGFRT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20938 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/f/intdoc.texi')
-rw-r--r--gcc/f/intdoc.texi50
1 files changed, 43 insertions, 7 deletions
diff --git a/gcc/f/intdoc.texi b/gcc/f/intdoc.texi
index 74153db4fdd..cad98a74096 100644
--- a/gcc/f/intdoc.texi
+++ b/gcc/f/intdoc.texi
@@ -184,7 +184,7 @@
* Date Intrinsic:: Get current date as dd-Mon-yy.
@end ifset
@ifset familyF90
-* Date_and_Time Intrinsic:: (Reserved for future use.)
+* Date_and_Time Intrinsic:: Get the current date and time.
@end ifset
@ifset familyF2U
* DbesJ0 Intrinsic:: Bessel function (archaic).
@@ -2977,10 +2977,46 @@ for the current (or any) date.
@cindex Date_and_Time intrinsic
@cindex intrinsics, Date_and_Time
-This intrinsic is not yet implemented.
-The name is, however, reserved as an intrinsic.
-Use @samp{EXTERNAL Date_and_Time} to use this name for an
-external procedure.
+@noindent
+@example
+CALL Date_and_Time(@var{Date}, @var{Ftime}, @var{Zone}, @var{Values})
+@end example
+
+@noindent
+@var{Date}: @code{CHARACTER}; scalar; INTENT(OUT).
+
+@noindent
+@var{Ftime}: @code{CHARACTER}; OPTIONAL; scalar; INTENT(OUT).
+
+@noindent
+@var{Zone}: @code{CHARACTER}; OPTIONAL; scalar; INTENT(OUT).
+
+@noindent
+@var{Values}: @code{INTEGER(KIND=1)}; OPTIONAL; DIMENSION(8); INTENT(OUT).
+
+@noindent
+Intrinsic groups: @code{f90}.
+
+@noindent
+Description:
+
+Returns
+@table @var
+@item Date
+The date in the form @var{ccyymmdd}: century, year, month and day;
+@item Ftime
+The time in the form @samp{@var{hhmmss.ss}}: hours, minutes, seconds
+and milliseconds;
+@item Zone
+The difference between local time and UTC (GMT) in the form @var{Shhmm}:
+sign, hours and minutes, e.g.@ @samp{-0500} (winter in New York);
+@item Values
+The year, month of the year, day of the month, time difference in
+minutes from UTC, hour of the day, minutes of the hour and milliseconds
+of the second in successive values of the array.
+@end table
+On systems where a millisecond timer isn't available, the millisecond
+value is returned as zero.
@end ifset
@ifset familyF2U
@@ -10006,10 +10042,10 @@ CALL System_Clock(@var{Count}, @var{Rate}, @var{Max})
@var{Count}: @code{INTEGER(KIND=1)}; scalar; INTENT(OUT).
@noindent
-@var{Rate}: @code{INTEGER(KIND=1)}; scalar; INTENT(OUT).
+@var{Rate}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
@noindent
-@var{Max}: @code{INTEGER(KIND=1)}; scalar; INTENT(OUT).
+@var{Max}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
@noindent
Intrinsic groups: @code{f90}.
OpenPOWER on IntegriCloud