Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (T-V)
Guardian Procedure Calls Reference Manual522629-013
15-8
TIME Procedure
TIME Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Related Programming Manual
Summary
The TIME procedure provides the current date and time in integer form.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
date-and-time output
INT:ref:7
returns an array with the current date and time in the following form:
date-and-time[0] year (1983, 1984, ... )
[1] month (1-12)
[2] day (1-31)
[3] hour (0-23)
[4] minute (0-59)
[5] second (0-59)
[6] .01 sec (0-99)
Considerations
This procedure uses the 48-bit timestamp as the basis for determining the date and
time. See procedure TIMESTAMP for a description of this form of timestamp.
Related Programming Manual
For programming information about the TIME utility procedure, refer to the Guardian
Programmer’s Guide.
#include <cextdecs(TIME)>
void TIME ( short _near *date-and-time );
CALL TIME ( date-and-time ); ! o