- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Converts between UTC and local time in a specific time zone
Java wrapper for Qt's class QTimeZone
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QTimeZone::NameTypestatic class
Java wrapper for Qt's class QTimeZone::OffsetDatastatic enum
Java wrapper for Qt enum QTimeZone::TimeTypeNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
ModifierConstructorDescriptionQTimeZone
(int offsetSeconds) QTimeZone
(QByteArray ianaId) QTimeZone
(QByteArray zoneId, int offsetSeconds, String name, String abbreviation) QTimeZone
(QByteArray zoneId, int offsetSeconds, String name, String abbreviation, QLocale.Country country) Overloaded constructor forQTimeZone(io.qt.core.QByteArray, int, java.lang.String, java.lang.String, io.qt.core.QLocale.Country, java.lang.String)
withcomment = (String)null
.QTimeZone
(QByteArray zoneId, int offsetSeconds, String name, String abbreviation, QLocale.Country country, String comment) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
abbreviation
(QDateTime atDateTime) final void
static QList<QByteArray>
static QList<QByteArray>
availableTimeZoneIds
(int offsetSeconds) static QList<QByteArray>
availableTimeZoneIds
(QLocale.Country country) clone()
final String
comment()
final QLocale.Country
country()
final int
daylightTimeOffset
(QDateTime atDateTime) final String
displayName
(QDateTime atDateTime) Overloaded function fordisplayName(io.qt.core.QDateTime, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)
final String
displayName
(QDateTime atDateTime, QTimeZone.NameType nameType) Overloaded function fordisplayName(io.qt.core.QDateTime, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)
withlocale = new io.qt.core.QLocale()
.final String
displayName
(QDateTime atDateTime, QTimeZone.NameType nameType, QLocale locale) final String
displayName
(QTimeZone.TimeType timeType) Overloaded function fordisplayName(io.qt.core.QTimeZone.TimeType, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)
final String
displayName
(QTimeZone.TimeType timeType, QTimeZone.NameType nameType) Overloaded function fordisplayName(io.qt.core.QTimeZone.TimeType, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)
withlocale = new io.qt.core.QLocale()
.final String
displayName
(QTimeZone.TimeType timeType, QTimeZone.NameType nameType, QLocale locale) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final boolean
int
hashCode()
final boolean
static QByteArray
ianaIdToWindowsId
(QByteArray ianaId) final QByteArray
id()
final boolean
isDaylightTime
(QDateTime atDateTime) static boolean
isTimeZoneIdAvailable
(QByteArray ianaId) final boolean
isValid()
final QTimeZone.OffsetData
nextTransition
(QDateTime afterDateTime) final QTimeZone.OffsetData
offsetData
(QDateTime forDateTime) final int
offsetFromUtc
(QDateTime atDateTime) final QTimeZone.OffsetData
previousTransition
(QDateTime beforeDateTime) void
readFrom
(QDataStream ds) final int
standardTimeOffset
(QDateTime atDateTime) final void
static QTimeZone
static QByteArray
toString()
final QVector<QTimeZone.OffsetData>
transitions
(QDateTime fromDateTime, QDateTime toDateTime) static QTimeZone
utc()
See QTimeZone::utc()static QByteArray
windowsIdToDefaultIanaId
(QByteArray windowsId) static QByteArray
windowsIdToDefaultIanaId
(QByteArray windowsId, QLocale.Country country) static QList<QByteArray>
windowsIdToIanaIds
(QByteArray windowsId) static QList<QByteArray>
windowsIdToIanaIds
(QByteArray windowsId, QLocale.Country country) void
writeTo
(QDataStream ds) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
MinUtcOffsetSecs
public static final int MinUtcOffsetSecs- See Also:
-
MaxUtcOffsetSecs
public static final int MaxUtcOffsetSecs- See Also:
-
-
Constructor Details
-
QTimeZone
public QTimeZone() -
QTimeZone
-
QTimeZone
public QTimeZone(QByteArray zoneId, int offsetSeconds, String name, String abbreviation, QLocale.Country country) Overloaded constructor for
QTimeZone(io.qt.core.QByteArray, int, java.lang.String, java.lang.String, io.qt.core.QLocale.Country, java.lang.String)
withcomment = (String)null
. -
QTimeZone
Overloaded constructor for
QTimeZone(io.qt.core.QByteArray, int, java.lang.String, java.lang.String, io.qt.core.QLocale.Country, java.lang.String)
with:
country = io.qt.core.QLocale.Country.AnyCountry
comment = (String)null
-
QTimeZone
public QTimeZone(QByteArray zoneId, int offsetSeconds, String name, String abbreviation, QLocale.Country country, String comment) -
QTimeZone
-
QTimeZone
public QTimeZone(int offsetSeconds) -
QTimeZone
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
abbreviation
-
comment
-
country
-
daylightTimeOffset
-
displayName
@QtUninvokable public final String displayName(QTimeZone.TimeType timeType, QTimeZone.NameType nameType) Overloaded function for
displayName(io.qt.core.QTimeZone.TimeType, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)
withlocale = new io.qt.core.QLocale()
. -
displayName
Overloaded function for
displayName(io.qt.core.QTimeZone.TimeType, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)
with:
nameType = io.qt.core.QTimeZone.NameType.DefaultName
locale = new io.qt.core.QLocale()
-
displayName
@QtUninvokable public final String displayName(QTimeZone.TimeType timeType, QTimeZone.NameType nameType, QLocale locale) -
displayName
Overloaded function for
displayName(io.qt.core.QDateTime, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)
withlocale = new io.qt.core.QLocale()
. -
displayName
Overloaded function for
displayName(io.qt.core.QDateTime, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)
with:
nameType = io.qt.core.QTimeZone.NameType.DefaultName
locale = new io.qt.core.QLocale()
-
displayName
@QtUninvokable public final String displayName(QDateTime atDateTime, QTimeZone.NameType nameType, QLocale locale) -
hasDaylightTime
-
hasTransitions
-
id
-
isDaylightTime
-
isValid
-
nextTransition
-
offsetData
-
offsetFromUtc
-
writeTo
-
assign
-
readFrom
-
previousTransition
-
standardTimeOffset
-
swap
-
transitions
@QtUninvokable public final QVector<QTimeZone.OffsetData> transitions(QDateTime fromDateTime, QDateTime toDateTime) -
availableTimeZoneIds
-
availableTimeZoneIds
-
availableTimeZoneIds
-
ianaIdToWindowsId
-
isTimeZoneIdAvailable
-
systemTimeZone
-
systemTimeZoneId
-
utc
See QTimeZone::utc()
-
windowsIdToDefaultIanaId
-
windowsIdToDefaultIanaId
-
windowsIdToIanaIds
-
windowsIdToIanaIds
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-