hide long namesshow long names
hide short namesshow short names
Integer type:  int32  int64  nag_int  show int32  show int32  show int64  show int64  show nag_int  show nag_int

PDF version (NAG web site, 64-bit version, 64-bit version)
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.

References

None.

Parameters

Compulsory Input Parameters

None.

Optional Input Parameters

None.

Input Parameters Omitted from the MATLAB Interface

None.

Output Parameters

1:     itime(77) – int64int32nag_int array
The current date and time, as follows:
itime(1)itime1
Contains the current year.
itime(2)itime2
Contains the current month, in the range 11–12.
itime(3)itime3
Contains the current day, in the range 11–31.
itime(4)itime4
Contains the current hour, in the range 00–23.
itime(5)itime5
Contains the current minute, in the range 00–59.
itime(6)itime6
Contains the current second, in the range 00–59.
itime(7)itime7
Contains the current millisecond, in the range 00–999.

Error Indicators and Warnings

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.

Further Comments

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



PDF version (NAG web site, 64-bit version, 64-bit version)
Chapter Contents
Chapter Introduction
NAG Toolbox

© The Numerical Algorithms Group Ltd, Oxford, UK. 2009–2013