Logo Search packages:      
Sourcecode: icu version File versions  Download package

UBool Calendar::after ( const Calendar when,
UErrorCode status 
) const [inherited]

Returns true if this Calendar's current time is after "when"'s current time.

when The Calendar to be compared with this Calendar. Although this is a const parameter, the object may be modified physically (semantically const).
status Output param set to success/failure code on exit. If any value previously set in the time field is invalid or restricted by leniency, this will be set to an error status.
True if the current time of this Calendar is after the time of Calendar when; false otherwise. ICU 2.0

Definition at line 933 of file calendar.cpp.

References Calendar::getTimeInMillis().

Referenced by CalendarRegressionTest::test4035301().

    return (this != &when &&
        getTimeInMillis(status) > when.getTimeInMillis(status));

Generated by  Doxygen 1.6.0   Back to index