TimestampOffset Class

  • TimestampOffset
  • class Esri::ArcGISRuntime::TimestampOffset

    An object that represents a date, time, and its offset from UTC. More...

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

    Public Functions

    virtual ~TimestampOffset() override
    Esri::ArcGISRuntime::DateOnly *dateOnly() const
    bool equals(Esri::ArcGISRuntime::TimestampOffset *other) const
    Esri::ArcGISRuntime::TimeOnly *timeOnly() const
    Esri::ArcGISRuntime::TimeZoneOffset *timeZoneOffset() const
    QString toString() const

    Static Public Members

    Esri::ArcGISRuntime::TimestampOffset *create(Esri::ArcGISRuntime::DateOnly *dateOnly, Esri::ArcGISRuntime::TimeOnly *timeOnly, Esri::ArcGISRuntime::TimeZoneOffset *timeZoneOffset, QObject *parent = nullptr)
    Esri::ArcGISRuntime::TimestampOffset *create(const QDateTime &dateTime, Esri::ArcGISRuntime::TimeZoneOffset *timeZoneOffset, QObject *parent = nullptr)
    Esri::ArcGISRuntime::TimestampOffset *create(const QString &timestampString, QObject *parent = nullptr)

    Detailed Description

    Member Function Documentation

    [override virtual] TimestampOffset::~TimestampOffset()

    Destructor.

    [static] Esri::ArcGISRuntime::TimestampOffset *TimestampOffset::create(Esri::ArcGISRuntime::DateOnly *dateOnly, Esri::ArcGISRuntime::TimeOnly *timeOnly, Esri::ArcGISRuntime::TimeZoneOffset *timeZoneOffset, QObject *parent = nullptr)

    Creates a new timestamp offset object from the provided date, time, and time zone offset.

    • dateOnly - The local date.
    • timeOnly - The local time.
    • timeZoneOffset - The offset that indicates how far ahead or behind the local date time is relative to UTC.
    • parent - The optional parent QObject.

    [static] Esri::ArcGISRuntime::TimestampOffset *TimestampOffset::create(const QDateTime &dateTime, Esri::ArcGISRuntime::TimeZoneOffset *timeZoneOffset, QObject *parent = nullptr)

    Creates a new timestamp offset object with the given value.

    • dateTime - The date time.
    • timeZoneOffset - The time zone offset.
    • parent - The optional parent QObject.

    The QDateTime is a local date and time in UTC.

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

    Creates a new timestamp offset object with the given value.

    • timestampString - The timestamp string in ISO 8601 format, YYYY-MM-DDTHH:MM:SS.sss[+/-]hh:mm.
    • parent - The optional parent QObject.

    Esri::ArcGISRuntime::DateOnly *TimestampOffset::dateOnly() const

    Returns the date component of the timestamp offset.

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

    Returns tests if two timestamp offset objects are equal.

    • other - The other timestamp offset object.

    Esri::ArcGISRuntime::TimeOnly *TimestampOffset::timeOnly() const

    Returns the time component of the timestamp offset.

    Does not contain milliseconds, even if the timestamp offset contains milliseconds.

    Esri::ArcGISRuntime::TimeZoneOffset *TimestampOffset::timeZoneOffset() const

    Returns the amount of hours ahead or behind UTC.

    QString TimestampOffset::toString() const

    Returns a string representing the timestamp in ISO8601 format, YYYY-MM-DDTHH:MM:SS.sss.

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