mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-2085 properly deprecate TZ::inDaylightTime() in both the base and implementation classes
X-SVN-Rev: 10253
This commit is contained in:
parent
15467108ce
commit
be1562a9bd
2 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue