# NAG FL Interfacex05aaf (date_​array)

## ▸▿ Contents

Settings help

FL Name Style:

FL Specification Language:

## 1Purpose

x05aaf returns the current date and time.

## 2Specification

Fortran Interface
 Subroutine x05aaf (
 Integer, Intent (Out) :: itime(7)
#include <nag.h>
 void x05aaf_ (Integer itime[])
The routine may be called by the names x05aaf or nagf_time_date_array.

## 3Description

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

None.

## 5Arguments

1: $\mathbf{itime}\left(7\right)$Integer array Output
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.

## 7Accuracy

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.

## 8Parallelism and Performance

x05aaf is not threaded in any implementation.

None.

## 10Example

This example prints out the vector itime after a call to x05aaf.

### 10.1Program Text

Program Text (x05aafe.f90)

None.

### 10.3Program Results

Program Results (x05aafe.r)