Guardian Procedure Calls Reference Manual
COMPUTETIMESTAMP Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Considerations
Related Programming Manual
Summary
The COMPUTETIMESTAMP procedure converts a Gregorian (common civil calendar) date and
time into a 64-bit Julian timestamp.
Syntax for C Programmers
#include <cextdecs(COMPUTETIMESTAMP)>
long long COMPUTETIMESTAMP ( short _near *date-n-time
,[ short_near *errormask ] );
Syntax for TAL Programmers
ret-timestamp := COMPUTETIMESTAMP ( date-n-time ! i
,[ errormask ] ); ! o
Parameters
date-n-time
input
INT:ref:8
is an array containing a date and time of day. The date-n-time array has this form:
(for example, 1984, 1985, ...)Gregorian year[0]
(1-12)Gregorian month[1]
(1-31)Gregorian day of the month[2]
(0-23)Hour of the day[3]
(0-59)Minute of the hour[4]
(0-59)Second of the minute[5]
(0-999)Millisecond of the second[6]
(0-999)Microsecond of the millisecond[7]
The range of the year is restricted from 1 through 10000.
COMPUTETIMESTAMP Procedure 183