X05AAF (PDF version)
X05 Chapter Contents
X05 Chapter Introduction
NAG Library Manual

NAG Library Routine Document

X05AAF

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.

 Contents

    1  Purpose
    7  Accuracy

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.

4  References

None.

5  Parameters

1:     ITIME7 – INTEGER arrayOutput
On exit: the current date and time, as follows:
ITIME1
Contains the current year.
ITIME2
Contains the current month, in the range 1–12.
ITIME3
Contains the current day, in the range 1–31.
ITIME4
Contains the current hour, in the range 0–23.
ITIME5
Contains the current minute, in the range 0–59.
ITIME6
Contains the current second, in the range 0–59.
ITIME7
Contains the current millisecond, in the range 0–999.

6  Error Indicators and Warnings

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.

8  Parallelism and Performance

Not applicable.

9  Further Comments

None.

10  Example

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

10.1  Program Text

Program Text (x05aafe.f90)

10.2  Program Data

None.

10.3  Program Results

Program Results (x05aafe.r)


X05AAF (PDF version)
X05 Chapter Contents
X05 Chapter Introduction
NAG Library Manual

© The Numerical Algorithms Group Ltd, Oxford, UK. 2015