This is the mail archive of the
mailing list for the GCC project.
date_and_time in g77
- To: help-gcc at gnu dot org
- Subject: date_and_time in g77
- From: jruth at lci dot kent dot edu (Jon Ruth)
- Date: Mon, 13 Dec 1999 20:23:14 GMT
- Cancel-Lock: sha1:6ssdi3CoYwp0DD8dBKlhnX/Iksc=
- Newsgroups: gnu.gcc.help
- Organization: LCI, Kent State University, Kent, OH, USA
- Reply-To: jruth at lci dot kent dot edu
- Xref: wodc7nx0 gnu.gcc.help:2195
I'm new to gcc/g77 and would appreciate recommendations on the
The documentation for g77 f90 intrinsic date_and_time indicates that
four parameters are returned:
CALL Date_and_Time(Date, Time, Zone, Values)
Date: CHARACTER; scalar; INTENT(OUT).
Time: CHARACTER; OPTIONAL; scalar; INTENT(OUT).
Zone: CHARACTER; OPTIONAL; scalar; INTENT(OUT).
Values: INTEGER(KIND=1); OPTIONAL; DIMENSION(8); INTENT(OUT).
I wrote the following:
and received the following error message:
Too many arguments passed to intrinsic `DATE_AND_TIME' at (^)
I eventually reduced the call to:
and the compiler was happy.
I'm porting an F77 application that compiled with Watcom but used time
and date calls that g77 does not support. The integer representations
that the array ivalues(8) should return would involve the least amount
What do I need to do in order to get date_and_time to behave as
advertised? I suspect that the proper libraries have not been
(NOTE: We're running Debian Linux with gcc 2.95.2. ["g77 version
2.95.2 19991109 (Debian GNU/Linux) (from FSF-g77 version 0.5.25
1999 1030 (prerelease))"])
Liquid Crystal Institute
Kent State University