[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]


   NAME
        CompareDates -- Compares two datestamps (V36)

   SYNOPSIS
        result = CompareDates(date1,date2)
        D0                     D1     D2

        long comparedates(struct datestamp *,struct datestamp *)

   FUNCTION
        Compares two times for relative magnitide.  <0 is returned if date1 is
        later than date2, 0 if they are equal, or >0 if date2 is later than
        date1.  NOTE: this is NOT the same ordering as strcmp!

   INPUTS
        date1, date2 - DateStamps to compare

   RESULT
        result -  <0, 0, or >0 based on comparison of two date stamps

   SEE ALSO
        datestamp(), datetostr(), strtodate()