![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Describes a text fragment representing a timezone. More...
#include <qtparsetimezone_p.h>
Public Attributes | |
| QTimeZone | zone {QTimeZone::LocalTime} |
| QTimeZone::TimeType | timeType = QTimeZone::GenericTime |
| Public Attributes inherited from QtParseCommon::ParsedText | |
| qsizetype | startIndex = 0 |
| qsizetype | endIndex = 0 |
Additional Inherited Members | |
| Public Member Functions inherited from QtParseCommon::ParsedText | |
| constexpr | operator bool () const noexcept |
| constexpr bool | isEmpty () const |
| constexpr qsizetype | size () const |
| constexpr QStringView | used (QStringView text) const |
Describes a text fragment representing a timezone.
Returned by functions that parse a timezone representation from a text. Its member variables are: \list
\endlist
The portion of the text that matched stretches from startIndex to endIndex and can be obtained by passing the same text to used(). This shall be empty if isEmpty() is true.
The zone describes the timezone matched. If isEmpty() is true, zone shall be a lightweight time representation for local time, since a timestamp with no specified zone is conventionally understood to be in local time (although whose local time may be unclear). If this leaves a tail of the text parsed that is otherwise not recognized, it may mean that the text was malformed, or represented a timezone not recognized by the parser. If the portion of the text matched takes a locale-appropriate form for a fixed offset from UTC, zone shall be a lightweight time representation for UTC, if the offset is zero, or for the specified offset from UTC. Otherwise, the text matched identified a specific timezone (this only happens if feature timezone is enabled) and zone is a timezone backed by system data.
Definition at line 29 of file qtparsetimezone_p.h.
| QTimeZone::TimeType QtParseTimeZone::ParsedZone::timeType = QTimeZone::GenericTime |
Definition at line 32 of file qtparsetimezone_p.h.
| QTimeZone QtParseTimeZone::ParsedZone::zone {QTimeZone::LocalTime} |
Definition at line 31 of file qtparsetimezone_p.h.