43 printf(
"*** date1: %s\n",
string);
45 printf(
" date2: %s\n",
string);
48 printf(
" date1-date2=date3: %s\n",
string);
51 printf(
" date3+date2=date4: %s\n",
string);
57 printf(
"\nTEST %s\n\n",routine);
63 printf(
"\n**** %s\n\n",routine);
72 printf(
"date-array ");
73 for (i=0; i<7; i++) { printf(
"%6d ",u->
array[i]); }
85 printf(
"%s ?? %s : %d\n",
87 printf(
"%s ?? %s : %d\n",
106 printf(
"date1 is %s\n",string1);
107 printf(
"date2 is %s\n",string2);
110 printf(
"%s * %d -> %s\n",string1, n, string3);
113 printf(
"fitting: %d to %s leads to %s\n",nfit,string3,stringf);
116 printf(
"%s / %d -> %s rest %d\n",string3,n,string4,rest);
121 printf(
"%s / %d -> %s rest %d\n",string4,n,string3,rest);
124 printf(
"fitting: %d to %s leads to %s\n",nfit,string4,stringf);
129 printf(
"fitting: %d to %s leads to %s\n",nfit,string3,stringf);
149 head(
"time_libversion");
152 head(
"time_isleapyear");
160 head(
"time_fullyear");
163 printf(
"year 0: %d\n",year);
166 printf(
"year 15: %d\n",year);
169 printf(
"year 97: %d\n",year);
172 printf(
"year 70: %d\n",year);
175 printf(
"year 100: %d\n",year);
178 printf(
"year 69: %d\n",year);
181 printf(
"year 99: %d\n",year);
184 printf(
"year 1831: %d\n",year);
187 printf(
"year 2061: %d\n",year);
194 head(
"time_sprint (time_getdate is implicit)");
207 printf(
"last doy (set by doy): %s\n",
time_sprint(date1));
210 printf(
"relative time value: %s\n",
time_sprint(date1));
276 head(
"time_getdate after time_clear");
280 printf(
"date after time_clear %d %d\n",day,month);
282 head(
"time_add and time_sub");
291 subhead(
"absolute & absolute");
306 subhead(
"absolute & relative");
317 subhead(
"relative & relative");
338 printf(
"date2 after clear: %s\n",
time_sprint(date2));
340 printf(
"date2 after copy: %s\n",
time_sprint(date2));
354 head(
"time_compare");
373 head(
"time_mul and time_div and time_nfit");
integer time_isleapyear(timeint year)
void time_div(time_Ts Date1, time_Ts *Pdate2, timeint n, timeint *rest)
char * time_sprint(time_Ts Date)
void divmultest(time_Ts date1, long int n, time_Ts date2)
void time_add(time_Ts Date1, time_Ts Date2, time_Ts *Pdate3)
void subhead(char *routine)
void time_getdate(timeint *day, timeint *month, time_Ts Date)
void subaddtest(time_Ts date1, time_Ts date2)
void time_setdoy(timeint day, timeint month, time_Ts *Pdate)
void time_clear(time_Ts *Pdate)
void time_copy(time_Ts Date1, time_Ts *Pdate2)
void time_norm(time_Ts *Pdate)
void time_fullyear(timeint *year)
void time_sub(time_Ts Date1, time_Ts Date2, time_Ts *Pdate3)
void time_nfit(time_Ts Date1, time_Ts Date2, timeint *n, time_Ts *Pfull)
void time_mul(time_Ts Date1, time_Ts *Pdate2, integer n)
void time_finish(time_Ts *Pdate)
integer time_compare(time_Ts Date1, time_Ts Date2)
void cmptest(time_Ts date1, time_Ts date2)