- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Identifies how a time representation relates to UTC
Java wrapper for Qt class QTimeZone
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQTimeZone::Initialization
static enum
Java wrapper for Qt enumQTimeZone::NameType
static class
Java wrapper for Qt classQTimeZone::OffsetData
static enum
Java wrapper for Qt enumQTimeZone::TimeType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Timezone offsets from UTC are expected to be no higher than thisstatic final int
Timezone offsets from UTC are expected to be no lower than this -
Constructor Summary
ConstructorDescriptionQTimeZone
(byte [] ianaId) Overloaded constructor forQTimeZone(io.qt.core.QByteArray)
.Overloaded constructor forQTimeZone(byte[], int, java.lang.String, java.lang.String, io.qt.core.QLocale.Country, java.lang.String)
QTimeZone
(byte [] zoneId, int offsetSeconds, String name, String abbreviation, QLocale.Country territory) Overloaded constructor forQTimeZone(byte[], int, java.lang.String, java.lang.String, io.qt.core.QLocale.Country, java.lang.String)
withcomment = (String)null
.QTimeZone
(byte [] zoneId, int offsetSeconds, String name, String abbreviation, QLocale.Country territory, String comment) 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 territory) 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 territory, String comment) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
abbreviation
(QDateTime atDateTime) final QTimeZone
final void
static QList<QByteArray>
static QList<QByteArray>
availableTimeZoneIds
(int offsetSeconds) static QList<QByteArray>
availableTimeZoneIds
(QLocale.Country territory) clone()
Creates and returns a copy of this object.final String
comment()
final QLocale.Country
country()
SeeQTimeZone::
country()const 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
(QDateTime atDateTime, QTimeZone.NameType nameType, QLocale.Language locale) Overloaded function fordisplayName(io.qt.core.QDateTime, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)
.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) final String
displayName
(QTimeZone.TimeType timeType, QTimeZone.NameType nameType, QLocale.Language locale) Overloaded function fordisplayName(io.qt.core.QTimeZone.TimeType, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)
.final boolean
boolean
final int
static QTimeZone
fromDurationAheadOfUtc
(TemporalAmount offset) static QTimeZone
fromSecondsAheadOfUtc
(int offset) final boolean
hasAlternativeName
(byte [] alias) Overloaded function forhasAlternativeName(io.qt.core.QByteArrayView)
.final boolean
hasAlternativeName
(QByteArray alias) Overloaded function forhasAlternativeName(io.qt.core.QByteArrayView)
.final boolean
hasAlternativeName
(QByteArrayView alias) final boolean
hasAlternativeName
(ByteBuffer alias) Overloaded function forhasAlternativeName(io.qt.core.QByteArrayView)
.final boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QTimeZone)
.final boolean
static QByteArray
ianaIdToWindowsId
(byte [] ianaId) Overloaded function forianaIdToWindowsId(io.qt.core.QByteArray)
.static QByteArray
ianaIdToWindowsId
(QByteArray ianaId) final QByteArray
id()
final boolean
isDaylightTime
(QDateTime atDateTime) static boolean
isTimeZoneIdAvailable
(byte [] ianaId) Overloaded function forisTimeZoneIdAvailable(io.qt.core.QByteArray)
.static boolean
isTimeZoneIdAvailable
(QByteArray ianaId) final boolean
static boolean
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) Seeoperator>>(QDataStream&,
QTimeZone&) final int
standardTimeOffset
(QDateTime atDateTime) final void
static QTimeZone
static QByteArray
final QLocale.Country
final Qt.TimeSpec
timeSpec()
toString()
Seeoperator<<(QDebug,
QTimeZone) final QList<QTimeZone.OffsetData>
transitions
(QDateTime fromDateTime, QDateTime toDateTime) static QTimeZone
utc()
SeeQTimeZone::
utc() static QByteArray
windowsIdToDefaultIanaId
(byte [] windowsId) Overloaded function forwindowsIdToDefaultIanaId(io.qt.core.QByteArray)
.static QByteArray
windowsIdToDefaultIanaId
(byte [] windowsId, QLocale.Country territory) Overloaded function forwindowsIdToDefaultIanaId(io.qt.core.QByteArray, io.qt.core.QLocale.Country)
.static QByteArray
windowsIdToDefaultIanaId
(QByteArray windowsId) static QByteArray
windowsIdToDefaultIanaId
(QByteArray windowsId, QLocale.Country territory) static QList<QByteArray>
windowsIdToIanaIds
(byte [] windowsId) Overloaded function forwindowsIdToIanaIds(io.qt.core.QByteArray)
.static QList<QByteArray>
windowsIdToIanaIds
(byte [] windowsId, QLocale.Country territory) Overloaded function forwindowsIdToIanaIds(io.qt.core.QByteArray, io.qt.core.QLocale.Country)
.static QList<QByteArray>
windowsIdToIanaIds
(QByteArray windowsId) static QList<QByteArray>
windowsIdToIanaIds
(QByteArray windowsId, QLocale.Country territory) void
writeTo
(QDataStream ds) Seeoperator<<(QDataStream&,
QTimeZone) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
MaxUtcOffsetSecs
public static final int MaxUtcOffsetSecsTimezone offsets from UTC are expected to be no higher than this
-
MinUtcOffsetSecs
public static final int MinUtcOffsetSecsTimezone offsets from UTC are expected to be no lower than this
-
-
Constructor Details
-
QTimeZone
public QTimeZone() -
QTimeZone
- Parameters:
ianaId
-
-
QTimeZone
public QTimeZone(QByteArray zoneId, int offsetSeconds, String name, String abbreviation, QLocale.Country territory, String comment) - Parameters:
zoneId
-offsetSeconds
-name
-abbreviation
-territory
-comment
-
-
QTimeZone
- Parameters:
other
-
-
QTimeZone
- Parameters:
spec
-- Since:
- This function was introduced in Qt 6.5.
-
QTimeZone
public QTimeZone(int offsetSeconds) - Parameters:
offsetSeconds
-
-
QTimeZone
public QTimeZone(byte [] ianaId) Overloaded constructor for
QTimeZone(io.qt.core.QByteArray)
. -
QTimeZone
public QTimeZone(QByteArray zoneId, int offsetSeconds, String name, String abbreviation, QLocale.Country territory) 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:
territory = io.qt.core.QLocale.Country.AnyTerritory
comment = (String)null
-
QTimeZone
public QTimeZone(byte [] zoneId, int offsetSeconds, String name, String abbreviation, QLocale.Country territory) Overloaded constructor for
QTimeZone(byte[], int, java.lang.String, java.lang.String, io.qt.core.QLocale.Country, java.lang.String)
withcomment = (String)null
. -
QTimeZone
Overloaded constructor for
QTimeZone(byte[], int, java.lang.String, java.lang.String, io.qt.core.QLocale.Country, java.lang.String)
with:
territory = io.qt.core.QLocale.Country.AnyTerritory
comment = (String)null
-
QTimeZone
public QTimeZone(byte [] zoneId, int offsetSeconds, String name, String abbreviation, QLocale.Country territory, String comment)
-
-
Method Details
-
abbreviation
- Parameters:
atDateTime
-- Returns:
-
asBackendZone
- Returns:
- Since:
- This function was introduced in Qt 6.5.
-
comment
- Returns:
-
country
See
QTimeZone::
country()const - Returns:
-
daylightTimeOffset
- Parameters:
atDateTime
-- Returns:
-
displayName
@QtUninvokable public final String displayName(QDateTime atDateTime, QTimeZone.NameType nameType, QLocale locale) - Parameters:
atDateTime
-nameType
-locale
-- Returns:
-
displayName
@QtUninvokable public final String displayName(QTimeZone.TimeType timeType, QTimeZone.NameType nameType, QLocale locale) - Parameters:
timeType
-nameType
-locale
-- Returns:
-
fixedSecondsAheadOfUtc
- Returns:
- Since:
- This function was introduced in Qt 6.5.
-
hasAlternativeName
- Parameters:
alias
-- Returns:
- Since:
- This function was introduced in Qt 6.8.
-
hasDaylightTime
- Returns:
-
hasTransitions
- Returns:
-
id
- Returns:
-
isDaylightTime
- Parameters:
atDateTime
-- Returns:
-
isUtcOrFixedOffset
- Returns:
- Since:
- This function was introduced in Qt 6.5.
-
isValid
- Returns:
-
nextTransition
- Parameters:
afterDateTime
-- Returns:
-
offsetData
- Parameters:
forDateTime
-- Returns:
-
offsetFromUtc
- Parameters:
atDateTime
-- Returns:
-
writeTo
See
operator<<(QDataStream&,
QTimeZone) - Parameters:
ds
-
-
assign
- Parameters:
other
-
-
equals
- Parameters:
rhs
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QTimeZone&) - Parameters:
ds
-
-
previousTransition
- Parameters:
beforeDateTime
-- Returns:
-
standardTimeOffset
- Parameters:
atDateTime
-- Returns:
-
swap
- Parameters:
other
-
-
territory
- Returns:
- Since:
- This function was introduced in Qt 6.2.
-
timeSpec
- Returns:
- Since:
- This function was introduced in Qt 6.5.
-
transitions
@QtUninvokable public final QList<QTimeZone.OffsetData> transitions(QDateTime fromDateTime, QDateTime toDateTime) - Parameters:
fromDateTime
-toDateTime
-- Returns:
-
availableTimeZoneIds
- Returns:
-
availableTimeZoneIds
- Parameters:
territory
-- Returns:
-
availableTimeZoneIds
- Parameters:
offsetSeconds
-- Returns:
-
fromDurationAheadOfUtc
- Parameters:
offset
-- Returns:
- Since:
- This function was introduced in Qt 6.5.
-
fromSecondsAheadOfUtc
- Parameters:
offset
-- Returns:
- Since:
- This function was introduced in Qt 6.5.
-
ianaIdToWindowsId
- Parameters:
ianaId
-- Returns:
-
isTimeZoneIdAvailable
- Parameters:
ianaId
-- Returns:
-
isUtcOrFixedOffset
- Parameters:
spec
-- Returns:
- Since:
- This function was introduced in Qt 6.5.
-
systemTimeZone
- Returns:
-
systemTimeZoneId
- Returns:
-
utc
See
QTimeZone::
utc() - Returns:
-
windowsIdToDefaultIanaId
- Parameters:
windowsId
-- Returns:
-
windowsIdToDefaultIanaId
- Parameters:
windowsId
-territory
-- Returns:
-
windowsIdToIanaIds
- Parameters:
windowsId
-- Returns:
-
windowsIdToIanaIds
- Parameters:
windowsId
-territory
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QTimeZone)
. -
toString
See
operator<<(QDebug,
QTimeZone) -
clone
Creates and returns a copy of this object.
-
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.Language locale) Overloaded function for
displayName(io.qt.core.QDateTime, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)
. -
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.Language locale) Overloaded function for
displayName(io.qt.core.QTimeZone.TimeType, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)
. -
hasAlternativeName
Overloaded function for
hasAlternativeName(io.qt.core.QByteArrayView)
. -
hasAlternativeName
Overloaded function for
hasAlternativeName(io.qt.core.QByteArrayView)
. -
hasAlternativeName
Overloaded function for
hasAlternativeName(io.qt.core.QByteArrayView)
. -
ianaIdToWindowsId
Overloaded function for
ianaIdToWindowsId(io.qt.core.QByteArray)
. -
isTimeZoneIdAvailable
public static boolean isTimeZoneIdAvailable(byte [] ianaId) Overloaded function for
isTimeZoneIdAvailable(io.qt.core.QByteArray)
. -
windowsIdToDefaultIanaId
Overloaded function for
windowsIdToDefaultIanaId(io.qt.core.QByteArray)
. -
windowsIdToDefaultIanaId
Overloaded function for
windowsIdToDefaultIanaId(io.qt.core.QByteArray, io.qt.core.QLocale.Country)
. -
windowsIdToIanaIds
Overloaded function for
windowsIdToIanaIds(io.qt.core.QByteArray)
. -
windowsIdToIanaIds
Overloaded function for
windowsIdToIanaIds(io.qt.core.QByteArray, io.qt.core.QLocale.Country)
.
-