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
    bool equals(Esri::ArcGISRuntime::TimeZoneOffset *other) const
    qint8 hours() const
    quint8 minutes() const
    QString toString() const

    Static Public Members

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

    Detailed Description

    Member Function Documentation

    [override virtual] TimeZoneOffset::~TimeZoneOffset()

    Destructor.

    [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).

    [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).

    bool TimeZoneOffset::equals(Esri::ArcGISRuntime::TimeZoneOffset *other) const

    Returns tests if two time zone offset objects are equal.

    • other - The other time zone offset object.

    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.

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