NAG FL Interface
x05aaf (date_​array)

Settings help

FL Name Style:


FL Specification Language:


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 <nag.h>
void  x05aaf_ (Integer itime[])
The routine may be called by the names x05aaf or nagf_time_date_array.

3 Description

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

4 References

None.

5 Arguments

1: itime(7) Integer array Output
On exit: the current date and time, as follows:
itime(1)
Contains the current year.
itime(2)
Contains the current month, in the range 112.
itime(3)
Contains the current day, in the range 131.
itime(4)
Contains the current hour, in the range 023.
itime(5)
Contains the current minute, in the range 059.
itime(6)
Contains the current second, in the range 059.
itime(7)
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)