Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QTimeZone class provides access to time zone data. More...
#include <QTimeZone>
The QTimeZone class provides access to time zone data.
QTimeZone provides access to timezone data and conversion between dates and times in different time zones.
A time zone is a region of the world that has adopted the same standard time, including conventions on Daylight Saving or Summer time adjustments.
Each time zone is specified by a unique identifier. A set of such identifiers is known to the system, and can be found using ids().
Conversions between time zones can either be done via UTC, using fromUtc() and toUtc(), or directly with convert(), fromCurrent(), or toCurrent().
Each time zone is in a greater area() and has an associated city() that observes the standard. This city is not necessarily the capital, just a well-known city in the area. More than one city in an area may observe identical standards, yet they will appear as distinct time zones. The countyCode() of the country containing the time zone is also available.
A QTimeZone either isValid() or is not valid. The default constructor creates an invalid QTimeZone.
Note that some features of QTimeZone may not be available on non-POSIX platforms.
See also QtopiaApplication::timeChanged().
Construct an invalid time zone.
Construct a QTimeZone for location locId. The time zone isValid() if locId is a valid time zone identifier in the list of ids().
Constructs a copy of the other QTimeZone.
Destruct QTimeZone.
Returns the translated greater area of this time zone, e.g. Europe.
Returns the translated city of this time zone, e.g. Oslo, or a null string if no specific city is identified.
Return the date and time dt in time zone dtTz as the date and time in this time zone.
Returns the ISO 3166 2-character country code.
Returns the current system time zone.
Returns the translated description of this time zone.
Returns the Daylight Savings Time (DST) time zone abbreviation.
Returns a time zone that, at time t, is mineast minutes ahead of GMT, and is observing Daylight Time according to isdst.
Usually, the returned timezone will be a UNIX GMT time zone offset (eg. "GMT-10" for 10 hours East of GMT), however, if no such timezone exists (eg. for half-hour time zones), a city time zone will be returned.
Returns the date and time curT in the current time zone as the date and time in this time zone.
See also current().
Returns the UTC date and time utc as a date and time in this time zone.
Return the time zone identifier, for example, Europe/London
See also setId().
Returns a list of all time zone ids known to the system.
Returns true if this is a valid time zone, otherwise false.
Returns the latitude of the city() of this timezone, in seconds of a degree.
Returns the longitude of the city() of this timezone, in seconds of a degree.
Returns either the city() for this time zone, or some other string meaningful to the user (eg. "GMT+10" meaning 10 hours East of GMT).
Sets the application time zone to newtz.
Sets the time zone id of this QTimeZone to id.
See also id().
Sets the system time zone to newtz.
Returns the time zone abbreviation, e.g. EST
Returns the date and time dt in this time zone as the date and time in the current system time zone.
See also current().
Returns the date and time dt in this time zone, as the number of seconds since 1 January 1970.
Returns the date and time dt in this time zone as a date and time in UTC.
Return a time zone located at the UTC reference.
Return the current system UTC date and time.
Returns true if c is not equal to this, otherwise false.
Assign time zone from to this time zone.
Returns true if c is equal to this, otherwise false.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |