2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include "dos_intern.h"
10 /*****************************************************************************
13 #include <proto/dos.h>
15 AROS_LH2(LONG
, CompareDates
,
18 AROS_LHA(const struct DateStamp
*, date1
, D1
),
19 AROS_LHA(const struct DateStamp
*, date2
, D2
),
22 struct DosLibrary
*, DOSBase
, 123, Dos
)
28 date1, date2 - The two dates to compare.
31 < 0 if date1 is later than date2, == 0 if they are equal or > 0
32 if date2 is later than date1.
35 This is NOT the same ordering as strcmp() !
45 *****************************************************************************/
50 diff
= date2
->ds_Days
- date1
->ds_Days
;
54 diff
= date2
->ds_Minute
- date1
->ds_Minute
;
57 diff
= date2
->ds_Tick
- date1
->ds_Tick
;