X05 Chapter Contents
X05 Chapter Introduction
NAG Library Manual

NAG Library Routine DocumentX05AAF

Note:  before using this routine, please read the Users' Note for your implementation to check the interpretation of bold italicised terms and other implementation-dependent details.

1  Purpose

X05AAF returns the current date and time.

2  Specification

 SUBROUTINE X05AAF ( ITIME)
 INTEGER ITIME(7)

3  Description

X05AAF returns the current date and time as a set of seven integers.

None.

5  Parameters

1:     ITIME($7$) – INTEGER arrayOutput
On exit: the current date and time, as follows:
${\mathbf{ITIME}}\left(1\right)$
Contains the current year.
${\mathbf{ITIME}}\left(2\right)$
Contains the current month, in the range $1$–12.
${\mathbf{ITIME}}\left(3\right)$
Contains the current day, in the range $1$–31.
${\mathbf{ITIME}}\left(4\right)$
Contains the current hour, in the range $0$–23.
${\mathbf{ITIME}}\left(5\right)$
Contains the current minute, in the range $0$–59.
${\mathbf{ITIME}}\left(6\right)$
Contains the current second, in the range $0$–59.
${\mathbf{ITIME}}\left(7\right)$
Contains the current millisecond, in the range $0$–999.

None.

7  Accuracy

The accuracy of this routine depends on the accuracy of the host machine. In particular, on some machines it may not be possible to return a value for the current millisecond. In this case, the value returned will be zero.

None.

9  Example

This example prints out the vector ITIME after a call to X05AAF.

9.1  Program Text

Program Text (x05aafe.f90)

None.

9.3  Program Results

Program Results (x05aafe.r)