

This class is primarily designed for use in QDateTime most applications will not need to access this class directly and should instead use an instance of it when constructing a QDateTime. This feature is enabled by default when time zone information is available. Note that, even when Qt is built with this feature enabled, it may be unavailable to users whose systems are misconfigured, or where some standard packages (for example, the tzdata package on Linux) are not installed. When it is not, some constructors and methods of QTimeZone are excluded from its API these are documented as depending on feature timezone. When Qt is built, the timezone feature controls whether such information is available. One time zone generally supported on most operating systems is designated local time this is presumed to correspond to the time zone within which the user is living.įor time zones other than local time, UTC and those at fixed offsets from UTC, Qt can only provide support when the operating system provides some way to access that information. The latter are properly known as time zones, but QTimeZone (since Qt 6.5) is unifies their representation with that of general time systems. Others are defined by governments for use within their jurisdictions. Some time representations are simply defined at a fixed offset to UTC. An instance of this class provides a stateless calculator for conversions between UTC and other time representations. All other time systems supported by Qt are ultimately specified in relation to UTC. There are various international standards for representing time one of these, UTC, corresponds to the traditional standard of solar mean time at Greenwich (a.k.a. When dates and times are combined, the meaning of the result depends on how time is being represented. Operator!=(const QTimeZone & other) const Transitions(const QDateTime & fromDateTime, const QDateTime & toDateTime) const StandardTimeOffset(const QDateTime & atDateTime) const PreviousTransition(const QDateTime & beforeDateTime) const OffsetFromUtc(const QDateTime & atDateTime) const OffsetData(const QDateTime & forDateTime) const NextTransition(const QDateTime & afterDateTime) const IsDaylightTime(const QDateTime & atDateTime) const QTimeZone(const QByteArray & ianaId, int offsetSeconds, const QString & name, const QString & abbreviation, QLocale::Territory territory = QLocale::AnyTerritory, const QString & comment = QString())Ībbreviation(const QDateTime & atDateTime) constĭaylightTimeOffset(const QDateTime & atDateTime) constĭisplayName(const QDateTime & atDateTime, QTimeZone::NameType nameType = QTimeZone::DefaultName, const QLocale & locale = QLocale()) constĭisplayName(QTimeZone::TimeType timeType, QTimeZone::NameType nameType = QTimeZone::DefaultName, const QLocale & locale = QLocale()) const QTimeZone(QTimeZone::Initialization spec)
