HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure specifications
Chapter 11540
Argument
DATESTR must be of type character. It must be a character string of length 9 or more.
DATE_AND_TIME(DATE, TIME, ZONE, VALUES)
Optional arguments
DATE, TIME, ZONE, VALUES
Description
Returns data on the real-time clock and date in a form compatible with the representations
defined in ISO 8601:1988 (“Data elements and interchange formats — Information
interchange — Representation of dates and times”).
Class
Subroutine.
Arguments
DATE (optional) must be scalar and of type default character, and must be of length at least 8
in order to contain the complete value. It is an INTENT(OUT) argument. Its
leftmost 8 characters are set to a value of the form
CCYYMMDD
, where
CC
is
the century,
YY
the year within the century,
MM
the month within the year,
and
DD
the day within the month. If there is no date available, they are set
to blank.
TIME (optional) must be scalar and of type default character, and must be of length at least
10 in order to contain the complete value. It is an INTENT(OUT) argument.
Its leftmost 10 characters are set to a value of the form
hhmmss.sss
, where
hh
is the hour of the day,
mm
is the minutes of the hour, and
ss.sss
is the
seconds and milliseconds of the minute. If there is no clock available, they
are set to blank.
ZONE (optional) must be scalar and of type default character, and must be of length at least 5
in order to contain the complete value. It is an INTENT(OUT) argument. Its
leftmost 5 characters are set to a value of the form (+/-)
hhmm
, where
hh
and
mm
are the time difference with respect to Coordinated Universal Time
(UTC) in hours and parts of an hour expressed in minutes, respectively. If
there is no clock available, they are set to blank.