An object that represents a date, time, and its offset from UTC. More...
Header | #include <Timestamp |
Since | Esri |
Inherits | Esri |
Public Functions
virtual | ~ |
Esri | date |
Esri | time |
Esri | time |
Q | to |
(since Esri bool | operator!=( |
(since Esri bool | operator==( |
Static Public Members
Esri | create(const Q |
Esri | create(const Q |
Esri | create( |
Detailed Description
Member Function Documentation
[override virtual noexcept]
TimestampOffset::~TimestampOffset ()
Destructor.
[static]
Esri::ArcGISRuntime::TimestampOffset *TimestampOffset::create(const QString ×tampString , 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.
[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(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.
Esri::ArcGISRuntime::DateOnly *TimestampOffset::dateOnly () const
Returns the date component of the timestamp offset.
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.
[since Esri::ArcGISRuntime 200.7]
bool TimestampOffset::operator!=(Esri::ArcGISRuntime::TimestampOffset *other) const
Tests and returns true
if two timestamp offset objects are not equal.
- other - The other timestamp offset object.
This function was introduced in Esri::ArcGISRuntime 200.7.
[since Esri::ArcGISRuntime 200.7]
bool TimestampOffset::operator==(Esri::ArcGISRuntime::TimestampOffset *other) const
Tests and returns true
if two timestamp offset objects are equal.
- other - The other timestamp offset object.
This function was introduced in Esri::ArcGISRuntime 200.7.