Lines Matching refs:fieldDifference
708 * value. For example, if <code>fieldDifference(when,
723 * int y = cal->fieldDifference(when, Calendar::YEAR, err);
724 * int m = cal->fieldDifference(when, Calendar::MONTH, err);
725 * int d = cal->fieldDifference(when, Calendar::DATE, err);</pre>
730 * <p>Note: <code>fieldDifference()</code> is
735 * int m1 = cal->fieldDifference(date2, Calendar::MONTH, err);
736 * int d1 = cal->fieldDifference(date2, Calendar::DATE, err);
738 * int m2 = cal->fieldDifference(date1, Calendar::MONTH, err);
739 * int d2 = cal->fieldDifference(date1, Calendar::DATE, err);</pre>
754 * @deprecated ICU 2.6. Use fieldDifference(UDate when, UCalendarDateFields field, UErrorCode& status).
756 virtual int32_t fieldDifference(UDate when, EDateFields field, UErrorCode& status);
765 * value. For example, if <code>fieldDifference(when,
780 * int y = cal->fieldDifference(when, Calendar::YEAR, err);
781 * int m = cal->fieldDifference(when, Calendar::MONTH, err);
782 * int d = cal->fieldDifference(when, Calendar::DATE, err);</pre>
787 * <p>Note: <code>fieldDifference()</code> is
792 * int m1 = cal->fieldDifference(date2, Calendar::MONTH, err);
793 * int d1 = cal->fieldDifference(date2, Calendar::DATE, err);
795 * int m2 = cal->fieldDifference(date1, Calendar::MONTH, err);
796 * int d2 = cal->fieldDifference(date1, Calendar::DATE, err);</pre>
813 virtual int32_t fieldDifference(UDate when, UCalendarDateFields field, UErrorCode& status);