NAG Library Routine Document

x05aaf (date_array)

1
Purpose

x05aaf returns the current date and time.

2
Specification

Fortran Interface
Subroutine x05aaf ( itime)
Integer, Intent (Out):: itime(7)
C Header Interface
#include <nagmk26.h>
void  x05aaf_ (Integer itime[])

3
Description

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

4
References

None.

5
Arguments

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 112.
itime3
Contains the current day, in the range 131.
itime4
Contains the current hour, in the range 023.
itime5
Contains the current minute, in the range 059.
itime6
Contains the current second, in the range 059.
itime7
Contains the current millisecond, in the range 0999.

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

x05aaf is not threaded in any implementation.

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)