Guardian Procedure Calls Reference Manual

COMPUTEJULIANDAYNO Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Related Programming Manual
Summary
The COMPUTEJULIANDAYNO procedure converts a Gregorian calendar date on or after January
1, 0001, to a Julian day number.
The Julian calendar is the integral number of days since January 1, 4713 B.C. The formal definition
of the Julian day states that it starts at 12:00 (noon), Greenwich mean time (GMT).
The Gregorian calendar is the common civil calendar that we use today.
Syntax for C Programmers
#include <cextdecs(COMPUTEJULIANDAYNO)>
__int32_t COMPUTEJULIANDAYNO ( short year
,short month
,short day
,[ short_near *error-mask ] );
CEXTDECS (through the included file TNSINTH) defines 32-bit values as the typedef
__int32_t, which for TNS and TNS/R compiles is defined as long and for TNS/E compiles
is defined as int.
Syntax for TAL Programmers
julian-day-num := COMPUTEJULIANDAYNO ( year ! i
,month ! i
,day ! i
,[ error-mask ] ); ! o
Parameters
year
input
INT:value
is the Gregorian year (for example, 1984, 1985, ... ). The range for year is restricted from
1 through 10000.
month
input
INT:value
is the Gregorian month (1-12).
day
input
INT:value
is the Gregorian day of the month (1-31).
COMPUTEJULIANDAYNO Procedure 181