ICU-2085 properly deprecate TZ::inDaylightTime() in both the base and implementation classes

X-SVN-Rev: 10253
This commit is contained in:
Markus Scherer 2002-11-14 02:04:10 +00:00
parent 15467108ce
commit be1562a9bd
2 changed files with 10 additions and 2 deletions

View file

@ -450,11 +450,15 @@ public:
* Returns true if the given date is within the period when daylight savings time
* is in effect; false otherwise. If the TimeZone doesn't observe daylight savings
* time, this functions always returns false.
* This method is wasteful since it creates a new GregorianCalendar and
* deletes it each time it is called. This is a deprecated method
* and provided only for Java compatibility.
*
* @param date The date to test.
* @param status An UErrorCode to receive the status.
* @return true if the given date is in Daylight Savings Time;
* false otherwise.
* @stable
* @deprecated since ICU 2.4. Use Calendar::inDaylightTime() instead.
*/
virtual UBool inDaylightTime(UDate date, UErrorCode& status) const;

View file

@ -515,11 +515,15 @@ public:
/**
* Queries if the given date is in daylight savings time in
* this time zone.
* This method is wasteful since it creates a new GregorianCalendar and
* deletes it each time it is called. This is a deprecated method
* and provided only for Java compatibility.
*
* @param date the given UDate.
* @param status Output param filled in with success/error code.
* @return true if the given date is in daylight savings time,
* false, otherwise.
* @deprecated Remove after 2000-dec-31. Use useDaylightTime() instead.
* @deprecated since ICU 2.4. Use Calendar::inDaylightTime() instead.
*/
virtual UBool inDaylightTime(UDate date, UErrorCode& status) const = 0;