Home | History | Annotate | Download | only in unicode

Lines Matching defs:TimeZone

6 * File TIMEZONE.H
34 * \brief C++ API: TimeZone object
49 * <code>TimeZone</code> represents a time zone offset, and also figures out daylight
53 * Typically, you get a <code>TimeZone</code> using <code>createDefault</code>
54 * which creates a <code>TimeZone</code> based on the time zone where the program
56 * creates a <code>TimeZone</code> object based on Japanese Standard Time.
59 * You can also get a <code>TimeZone</code> using <code>createTimeZone</code> along
61 * Time zone is "America/Los_Angeles". So, you can get a Pacific Time <code>TimeZone</code> object
65 * TimeZone *tz = TimeZone::createTimeZone("America/Los_Angeles");
70 * supported ID to get a <code>TimeZone</code>.
82 * time zone ID. The <code>TimeZone</code> that is returned
86 * TimeZone is an abstract class representing a time zone. A TimeZone is needed for
87 * Calendar to produce local time for a particular time zone. A TimeZone comprises
99 * (Only the ID is actually implemented in TimeZone; subclasses of TimeZone may handle
101 * TimeZone subclass: SimpleTimeZone.)
103 * The TimeZone class contains a static list containing a TimeZone object for every
112 * To create a new TimeZone, you call the factory function TimeZone::createTimeZone()
116 * You can also use TimeZone::createDefault() to create a TimeZone. This function uses
117 * platform-specific APIs to produce a TimeZone for the time zone corresponding to
119 * your machine is set up correctly), TimeZone::createDefault() will return a TimeZone
122 class U_I18N_API TimeZone : public UObject {
127 virtual ~TimeZone();
135 static const TimeZone* U_EXPORT2 getGMT(void);
138 * Creates a <code>TimeZone</code> for the given ID.
139 * @param ID the ID for a <code>TimeZone</code>, such as "America/Los_Angeles",
141 * @return the specified <code>TimeZone</code>, or the GMT zone if the given ID
147 static TimeZone* U_EXPORT2 createTimeZone(const UnicodeString& ID);
228 * Creates a new copy of the default TimeZone for this host. Unless the default time
231 * system routines fail, or if they specify a TimeZone or TimeZone offset which is not
232 * recognized, the TimeZone indicated by the ID kLastResortID is instantiated
235 * @return A default TimeZone. Clients are responsible for deleting the time zone
239 static TimeZone* U_EXPORT2 createDefault(void);
244 * zone is set to the default host time zone. This call adopts the TimeZone object
247 * @param zone A pointer to the new TimeZone object to use as the default.
250 static void U_EXPORT2 adoptDefault(TimeZone* zone);
253 * Same as adoptDefault(), except that the TimeZone object passed in is NOT adopted;
256 * @param zone The given timezone.
259 static void U_EXPORT2 setDefault(const TimeZone& zone);
262 * Returns the timezone data version currently used by ICU.
270 * Returns the canonical system timezone ID or the normalized
304 * Returns true if the two TimeZones are equal. (The TimeZone version only compares
307 * @param that The TimeZone object to be compared with.
308 * @return True if the given TimeZone is equal to this TimeZone; false
312 virtual UBool operator==(const TimeZone& that) const;
318 * @param that The TimeZone object to be compared with.
319 * @return True if the given TimeZone is not equal to this TimeZone; false
323 UBool operator!=(const TimeZone& that) const {return !operator==(that);}
326 * Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add
380 * Gregorian calendar. The default implementation in the TimeZone
403 * Sets the TimeZone's raw GMT offset (i.e., the number of milliseconds to add
412 * Returns the TimeZone's raw GMT offset (i.e., the number of milliseconds to add
415 * @return The TimeZone's raw GMT offset.
421 * Fills in "ID" with the TimeZone's ID.
423 * @param ID Receives this TimeZone's ID.
430 * Sets the TimeZone's ID to the specified value. This doesn't affect any other
433 * . TimeZone* foo = TimeZone::createTimeZone("America/New_York");
579 * @param other the <code>TimeZone</code> object to be compared with
584 virtual UBool hasSameRules(const TimeZone& other) const;
587 * Clones TimeZone objects polymorphically. Clients are responsible for deleting
588 * the TimeZone object cloned.
590 * @return A new copy of this TimeZone object.
593 virtual TimeZone* clone(void) const = 0;
608 * Concrete subclasses of TimeZone must use the UOBJECT_DEFINE_RTTI_IMPLEMENTATION
624 * If an underlying TimeZone implementation subclass supports
639 TimeZone();
642 * Construct a TimeZone with a given ID.
646 TimeZone(const UnicodeString &id);
653 TimeZone(const TimeZone& source);
660 TimeZone& operator=(const TimeZone& right);
677 static TimeZone* createCustomTimeZone(const UnicodeString&); // Creates a time zone based on the string.
747 * @return the TimeZone indicated by the 'name'.
749 static TimeZone* createSystemTimeZone(const UnicodeString& name);
759 TimeZone::getID(UnicodeString& ID) const
768 TimeZone::setID(const UnicodeString& ID)