An object that denotes an offset from UTC. More...
| Header | #include <Time |
| Since | Esri |
| Inherits | Esri |
Public Functions
| virtual | ~ |
| qint8 | hours() const |
| quint8 | minutes() const |
| QString | to |
(since Esri bool | operator!=( |
(since Esri bool | operator==( |
Static Public Members
| Esri | create(const QString &offset, QObject *parent = nullptr) |
| Esri | 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.