- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QTimeZone extends QtObject implements Cloneable
Converts between UTC and local time in a specific time zone
Java wrapper for Qt class QTimeZone
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QTimeZone.NameType
Java wrapper for Qt enum QTimeZone::NameTypestatic class
QTimeZone.OffsetData
Java wrapper for Qt class QTimeZone::OffsetDatastatic class
QTimeZone.TimeType
Java wrapper for Qt enum QTimeZone::TimeType -
Constructor Summary
Constructors Modifier Constructor Description QTimeZone()
QTimeZone(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 = ""
.QTimeZone(QByteArray zoneId, int offsetSeconds, String name, String abbreviation, QLocale.Country country, String comment)
QTimeZone(QTimeZone other)
protected
QTimeZone(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
-
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 = ""
. -
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 = ""
-
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
-
readFrom
-
previousTransition
-
standardTimeOffset
-
swap
-
transitions
@QtUninvokable public final QList<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 native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-