Lines Matching defs:TimeZone

34  * \brief C++ API: TimeZone object
50 * <code>TimeZone</code> represents a time zone offset, and also figures out daylight
54 * Typically, you get a <code>TimeZone</code> using <code>createDefault</code>
55 * which creates a <code>TimeZone</code> based on the time zone where the program
57 * creates a <code>TimeZone</code> object based on Japanese Standard Time.
60 * You can also get a <code>TimeZone</code> using <code>createTimeZone</code> along
62 * Time zone is "America/Los_Angeles". So, you can get a Pacific Time <code>TimeZone</code> object
66 * TimeZone *tz = TimeZone::createTimeZone("America/Los_Angeles");
72 * supported ID to get a <code>TimeZone</code>.
84 * time zone ID. The <code>TimeZone</code> that is returned
88 * time zone ID to create a TimeZone representing 14 hours ahead
93 * TimeZone is an abstract class representing a time zone. A TimeZone is needed for
94 * Calendar to produce local time for a particular time zone. A TimeZone comprises
106 * (Only the ID is actually implemented in TimeZone; subclasses of TimeZone may handle
108 * TimeZone subclasses: RuleBasedTimeZone, SimpleTimeZone, and VTimeZone.)
110 * The TimeZone class contains a static list containing a TimeZone object for every
119 * To create a new TimeZone, you call the factory function TimeZone::createTimeZone()
123 * You can also use TimeZone::createDefault() to create a TimeZone. This function uses
124 * platform-specific APIs to produce a TimeZone for the time zone corresponding to
126 * your machine is set up correctly), TimeZone::createDefault() will return a TimeZone
129 class U_I18N_API TimeZone : public UObject {
134 virtual ~TimeZone();
148 static const TimeZone& U_EXPORT2 getUnknown();
162 static const TimeZone* U_EXPORT2 getGMT(void);
165 * Creates a <code>TimeZone</code> for the given ID.
166 * @param ID the ID for a <code>TimeZone</code>, such as "America/Los_Angeles",
168 * @return the specified <code>TimeZone</code>, or a mutable clone of getUnknown()
175 static TimeZone* U_EXPORT2 createTimeZone(const UnicodeString& ID);
277 * Creates a new copy of the default TimeZone for this host. Unless the default time
280 * system routines fail, or if they specify a TimeZone or TimeZone offset which is not
281 * recognized, the TimeZone indicated by the ID kLastResortID is instantiated
284 * @return A default TimeZone. Clients are responsible for deleting the time zone
288 static TimeZone* U_EXPORT2 createDefault(void);
293 * zone is set to the default host time zone. This call adopts the TimeZone object
300 * @param zone A pointer to the new TimeZone object to use as the default.
303 static void U_EXPORT2 adoptDefault(TimeZone* zone);
307 * Same as adoptDefault(), except that the TimeZone object passed in is NOT adopted;
316 static void U_EXPORT2 setDefault(const TimeZone& zone);
419 * Returns true if the two TimeZones are equal. (The TimeZone version only compares
422 * @param that The TimeZone object to be compared with.
423 * @return True if the given TimeZone is equal to this TimeZone; false
427 virtual UBool operator==(const TimeZone& that) const;
433 * @param that The TimeZone object to be compared with.
434 * @return True if the given TimeZone is not equal to this TimeZone; false
438 UBool operator!=(const TimeZone& that) const {return !operator==(that);}
441 * Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add
495 * Gregorian calendar. The default implementation in the TimeZone
518 * Sets the TimeZone's raw GMT offset (i.e., the number of milliseconds to add
527 * Returns the TimeZone's raw GMT offset (i.e., the number of milliseconds to add
530 * @return The TimeZone's raw GMT offset.
536 * Fills in "ID" with the TimeZone's ID.
538 * @param ID Receives this TimeZone's ID.
545 * Sets the TimeZone's ID to the specified value. This doesn't affect any other
548 * . TimeZone* foo = TimeZone::createTimeZone("America/New_York");
673 * ICU TimeZone uses the tz database, which supports historic
695 * <code>BasicTimeZone</code> class (Note that <code>TimeZone::createTimeZone(const UnicodeString &ID)</code>
722 * @param other the <code>TimeZone</code> object to be compared with
727 virtual UBool hasSameRules(const TimeZone& other) const;
730 * Clones TimeZone objects polymorphically. Clients are responsible for deleting
731 * the TimeZone object cloned.
733 * @return A new copy of this TimeZone object.
736 virtual TimeZone* clone(void) const = 0;
751 * Concrete subclasses of TimeZone must use the UOBJECT_DEFINE_RTTI_IMPLEMENTATION
767 * If an underlying TimeZone implementation subclass supports
802 TimeZone();
805 * Construct a TimeZone with a given ID.
809 TimeZone(const UnicodeString &id);
816 TimeZone(const TimeZone& source);
823 TimeZone& operator=(const TimeZone& right);
842 static TimeZone* createCustomTimeZone(const UnicodeString&); // Creates a time zone based on the string.
933 TimeZone::getID(UnicodeString& ID) const
942 TimeZone::setID(const UnicodeString& ID)