Integer type:  int32  int64  nag_int  show int32  show int32  show int64  show int64  show nag_int  show nag_int

Chapter Contents
Chapter Introduction
NAG Toolbox

# NAG Toolbox: nag_time_date_array (x05aa)

## Purpose

nag_time_date_array (x05aa) returns the current date and time.

## Syntax

[itime] = x05aa
[itime] = nag_time_date_array

## Description

nag_time_date_array (x05aa) returns the current date and time as a set of seven integers.

None.

## Parameters

None.

None.

None.

### Output Parameters

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

None.

## Accuracy

The accuracy of this function 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.

## Example

```function nag_time_date_array_example
[itime] = nag_time_date_array
```
```

itime =

2013
7
25
17
12
8
242

```
```function x05aa_example
[itime] = x05aa
```
```

itime =

2013
7
25
17
45
59
800

```