1 #include <dos/datetime.h>
17 dt
.dat_Stamp
.ds_Days
= days
;
18 dt
.dat_Format
= FORMAT_DOS
;
23 dt
.dat_Stamp
.ds_Days
= -1;
26 //printf("date \"%s\" day = %ld\n", s, days);
28 if (dt
.dat_Stamp
.ds_Days
!= days
)
30 printf("Bad results for date \"%s\" (day #%ld). "
31 "StrToDate thought it was day #%ld\n", s
, (long)days
, (long)dt
.dat_Stamp
.ds_Days
);
36 } while (!CheckSignal(SIGBREAKF_CTRL_C
) && (days
< 365 * 300)); /* around 300 years */