TimeZoneOffset Class

  • TimeZoneOffset
  • class Esri::ArcGISRuntime::TimeZoneOffset

    An object that denotes an offset from UTC. More...

    Header: #include <TimeZoneOffset.h>
    Since: Esri::ArcGISRuntime 200.4
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    virtual ~TimeZoneOffset() override
    qint8 hours() const
    quint8 minutes() const
    QString toString() const
    (since Esri::ArcGISRuntime 200.7) bool operator!=(Esri::ArcGISRuntime::TimeZoneOffset *other) const
    (since Esri::ArcGISRuntime 200.7) bool operator==(Esri::ArcGISRuntime::TimeZoneOffset *other) const

    Static Public Members

    Esri::ArcGISRuntime::TimeZoneOffset *create(const QString &offset, QObject *parent = nullptr)
    Esri::ArcGISRuntime::TimeZoneOffset *create(qint8 hours, quint8 minutes, QObject *parent = nullptr)

    Detailed Description

    Member Function Documentation

    [override virtual noexcept] TimeZoneOffset::~TimeZoneOffset()

    Destructor.

    [static] Esri::ArcGISRuntime::TimeZoneOffset *TimeZoneOffset::create(const QString &offset, QObject *parent = nullptr)

    Creates a new time zone offset object from a string, [+/-]HH:MM.

    • offset - The amount of time ahead or behind UTC.
    • parent - The optional parent QObject.

    Offsets must follow ISO 8601 format and be between -12:00 to +14:00 (inclusive).

    [static] Esri::ArcGISRuntime::TimeZoneOffset *TimeZoneOffset::create(qint8 hours, quint8 minutes, QObject *parent = nullptr)

    Creates a new time zone offset object from the provided hours and minutes.

    • hours - The hours.
    • minutes - The minutes.
    • parent - The optional parent QObject.

    Offsets must follow ISO 8601 format and between -12:00 to +14:00 (inclusive).

    qint8 TimeZoneOffset::hours() const

    Returns the hours component of the time zone offset represented by this instance.

    quint8 TimeZoneOffset::minutes() const

    Returns the minutes component of the time zone offset represented by this instance.

    QString TimeZoneOffset::toString() const

    Returns a string representing the amount of time ahead or behind UTC.

    [since Esri::ArcGISRuntime 200.7] bool TimeZoneOffset::operator!=(Esri::ArcGISRuntime::TimeZoneOffset *other) const

    Tests and returns true if two time zone offset objects are not equal.

    • other - The other time zone offset object.

    This function was introduced in Esri::ArcGISRuntime 200.7.

    [since Esri::ArcGISRuntime 200.7] bool TimeZoneOffset::operator==(Esri::ArcGISRuntime::TimeZoneOffset *other) const

    Tests and returns true if two time zone offset objects are equal.

    • other - The other time zone offset object.

    This function was introduced in Esri::ArcGISRuntime 200.7.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.