2 Copyright © 1995-2015, The AROS Development Team. All rights reserved.
6 #include <dos/datetime.h>
20 LONG result
= RETURN_OK
;
24 dt
.dat_Stamp
.ds_Days
= days
;
25 dt
.dat_Format
= FORMAT_DOS
;
30 dt
.dat_Stamp
.ds_Days
= -1;
33 //printf("date \"%s\" day = %ld\n", s, days);
35 if (dt
.dat_Stamp
.ds_Days
!= days
)
37 printf("Bad results for date \"%s\" (day #%ld). "
38 "StrToDate thought it was day #%ld\n", s
, (long)days
,
39 (long)dt
.dat_Stamp
.ds_Days
);
40 result
= RETURN_ERROR
;
46 while (!CheckSignal(SIGBREAKF_CTRL_C
) && (days
< 36525));
47 /* 2078-01-01: same as 1978 in FORMAT_DOS */