Removed so that we can do the vendor copy again.
[AROS.git] / rom / dos / comparedates.c
blob953a8e5fac3ee188990aab5848f85d6ff5a55bdd
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
8 #include "dos_intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <proto/dos.h>
15 AROS_LH2(LONG, CompareDates,
17 /* SYNOPSIS */
18 AROS_LHA(const struct DateStamp *, date1, D1),
19 AROS_LHA(const struct DateStamp *, date2, D2),
21 /* LOCATION */
22 struct DosLibrary *, DOSBase, 123, Dos)
24 /* FUNCTION
25 Compares two dates.
27 INPUTS
28 date1, date2 - The two dates to compare.
30 RESULT
31 < 0 if date1 is later than date2, == 0 if they are equal or > 0
32 if date2 is later than date1.
34 NOTES
35 This is NOT the same ordering as strcmp() !
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 *****************************************************************************/
47 AROS_LIBFUNC_INIT
48 LONG diff;
50 diff = date2->ds_Days - date1->ds_Days;
52 if (diff == 0)
54 diff = date2->ds_Minute - date1->ds_Minute;
56 if (diff == 0)
57 diff = date2->ds_Tick - date1->ds_Tick;
60 return diff;
62 AROS_LIBFUNC_EXIT
63 } /* CompareDates */