34 #if U_SHOW_CPLUSPLUS_API 41 #if !UCONFIG_NO_FORMATTING 50 class StringEnumeration;
152 static const TimeZone& U_EXPORT2 getUnknown();
166 static const TimeZone* U_EXPORT2 getGMT(
void);
199 const int32_t* rawOffset,
256 static int32_t U_EXPORT2 countEquivalentIDs(
const UnicodeString&
id);
303 static TimeZone* U_EXPORT2 detectHostTimeZone();
318 static TimeZone* U_EXPORT2 createDefault(
void);
329 static void U_EXPORT2 adoptDefault(
TimeZone* zone);
331 #ifndef U_HIDE_SYSTEM_API 340 static void U_EXPORT2 setDefault(
const TimeZone& zone);
349 static const char* U_EXPORT2 getTZDataVersion(
UErrorCode& status);
485 virtual int32_t getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
486 uint8_t dayOfWeek, int32_t millis,
UErrorCode& status)
const = 0;
508 virtual int32_t getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
509 uint8_t dayOfWeek, int32_t milliseconds,
510 int32_t monthLength,
UErrorCode& status)
const = 0;
535 virtual void getOffset(
UDate date,
UBool local, int32_t& rawOffset,
545 virtual void setRawOffset(int32_t offsetMillis) = 0;
554 virtual int32_t getRawOffset(
void)
const = 0;
723 virtual UBool useDaylightTime(
void)
const = 0;
725 #ifndef U_FORCE_HIDE_DEPRECATED_API 740 #endif // U_FORCE_HIDE_DEPRECATED_API 759 virtual TimeZone* clone()
const = 0;
767 static UClassID U_EXPORT2 getStaticClassID(
void);
797 virtual int32_t getDSTSavings()
const;
817 char *region, int32_t capacity,
UErrorCode& status);
848 #ifndef U_HIDE_INTERNAL_API 862 friend class ZoneMeta;
885 static const char16_t* dereferOlsonLink(
const UnicodeString&
id);
896 #ifndef U_HIDE_INTERNAL_API 920 int32_t& minute, int32_t& second);
944 static UnicodeString& formatCustomID(int32_t hour, int32_t min, int32_t sec,
949 friend class TZEnumeration;
void setID(const UnicodeString &ID)
Sets the TimeZone's ID to the specified value.
UnicodeString & getID(UnicodeString &ID) const
Fills in "ID" with the TimeZone's ID.
double UDate
Date and Time data type.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Base class for 'pure' C++ implementations of uenum api.
EDisplayType
Enum for use with getDisplayName.
TimeZone represents a time zone offset, and also figures out daylight savings.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
Selector for short display name derived from time zone offset.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
Selector for short generic display name.
Selector for long generic display name.
Selector for long display name.
C++ API: Common ICU base class UObject.
Selector for short display name derived from the time zone's fallback name.
USystemTimeZoneType
System time zone type constants used by filtering zones in ucal_openTimeZoneIDEnumeration.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
struct UResourceBundle UResourceBundle
UObject is the common ICU "boilerplate" class.
Selector for long display name derived from time zone offset.
UBool operator!=(const TimeZone &that) const
Returns true if the two TimeZones are NOT equal; that is, if operator==() returns false...
int8_t UBool
The ICU boolean type.
A Locale object represents a specific geographical, political, or cultural region.