02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Argument<br />

Intrinsic procedures<br />

Intrinsic procedure specifications<br />

DATESTR must be of type character. It must be a character string of length 9 or more.<br />

DATE_AND_TIME(DATE, TIME, ZONE, VALUES)<br />

Optional arguments<br />

DATE, TIME, ZONE, VALUES<br />

Description<br />

Returns data on the real-time clock and date in a form compatible with the representations<br />

defined in ISO 8601:1988 (“Data elements and interchange formats — Information<br />

interchange — Representation of dates and times”).<br />

Class<br />

Subroutine.<br />

Arguments<br />

DATE (optional) must be scalar and of type default character, and must be of length at least<br />

8 in order to contain the complete value. It is an INTENT(OUT) argument. Its<br />

leftmost 8 characters are set to a value of the form CCYYMMDD, whereCC is<br />

the century, YY the year within the century, MM the month within the year,<br />

and DD the day within the month. If there is no date available, they are set<br />

to blank.<br />

TIME (optional) must be scalar and of type default character, and must be of length at least<br />

10inordertocontainthecompletevalue.ItisanINTENT(OUT) argument.<br />

Its leftmost 10 characters are set to a value of the form hhmmss.sss, where<br />

hh is the hour of the day, mm is the minutes of the hour, and ss.sss is the<br />

seconds and milliseconds of the minute. If there is no clock available, they<br />

are set to blank.<br />

ZONE (optional) must be scalar and of type default character, and must be of length at least<br />

5 in order to contain the complete value. It is an INTENT(OUT) argument. Its<br />

leftmost 5 characters are set to a value of the form (+/-)hhmm, wherehh and<br />

mm are the time difference with respect to Coordinated Universal Time<br />

(UTC) in hours and parts of an hour expressed in minutes, respectively. If<br />

there is no clock available, they are set to blank.<br />

Chapter 11 505

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!