![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qtimezone.h"#include "qtimezoneprivate_p.h"#include "private/qlocale_tools_p.h"#include "private/qlocking_p.h"#include <QtCore/QDataStream>#include <QtCore/QDateTime>#include <QtCore/QDirListing>#include <QtCore/QDir>#include <QtCore/QFile>#include <QtCore/QCache>#include <QtCore/QMap>#include <QtCore/QMutex>#include <qdebug.h>#include <qplatformdefs.h>#include <algorithm>#include <memory>#include <errno.h>#include <limits.h>#include <sys/param.h>#include <unistd.h>Go to the source code of this file.
Classes | |
| struct | QTzTimeZone |
| struct | QTzHeader |
| struct | QTzTransition |
| struct | QTzType |
| class | QTzTimeZoneCache |
Macros | |
| #define | TZ_MAGIC "TZif" |
| #define | TZ_MAX_TIMES 1200 |
| #define | TZ_MAX_TYPES 256 |
| #define | TZ_MAX_CHARS 50 |
| #define | TZ_MAX_LEAPS 50 |
Typedefs | |
| typedef QHash< QByteArray, QTzTimeZone > | QTzTimeZoneHash |
Functions | |
| static bool | isTzFile (const QString &name) |
| static bool | openZoneInfo (const QString &name, QFile *file) |
| static QTzTimeZoneHash | loadTzTimeZones () |
| Q_GLOBAL_STATIC (const QTzTimeZoneHash, tzZones, loadTzTimeZones()) | |
| Q_DECLARE_TYPEINFO (QTzTransition, Q_PRIMITIVE_TYPE) | |
| Q_DECLARE_TYPEINFO (QTzType, Q_PRIMITIVE_TYPE) | |
| static QTzHeader | parseTzHeader (QDataStream &ds, bool *ok) |
| static std::optional< QList< QTzTransition > > | parseTzTransitions (QDataStream &ds, int tzh_timecnt, int tzh_typecnt, bool longTran) |
| static QList< QTzType > | parseTzTypes (QDataStream &ds, int tzh_typecnt) |
| static QMap< int, QByteArray > | parseTzAbbreviations (QDataStream &ds, int tzh_charcnt, const QList< QTzType > &types) |
| static void | parseTzLeapSeconds (QDataStream &ds, int tzh_leapcnt, bool longTran) |
| static QList< QTzType > | parseTzIndicators (QDataStream &ds, const QList< QTzType > &types, int tzh_ttisstdcnt, int tzh_ttisgmtcnt) |
| static QByteArray | parseTzPosixRule (QDataStream &ds) |
| static QDate | calculateDowDate (int year, int month, int dayOfWeek, int week) |
| static QDate | calculatePosixDate (QLatin1StringView dateRule, int year) |
| static int | parsePosixTime (const char *begin, const char *end) |
| static int | parsePosixTransitionTime (QLatin1StringView timeRule) |
| static int | parsePosixOffset (const char *begin, const char *end) |
| static bool | asciiIsLetter (char ch) |
| static bool | asciiIsQuotedNameChar (char ch) |
| static auto | validatePosixRule (QByteArrayView posixRule, bool requireOffset=false) |
| static QList< QTimeZonePrivate::Data > | calculatePosixTransitions (const QByteArray &posixRule, int startYear, int endYear, qint64 lastTranMSecs) |
| #define TZ_MAGIC "TZif" |
Definition at line 153 of file qtimezoneprivate_tz.cpp.
| #define TZ_MAX_CHARS 50 |
Definition at line 156 of file qtimezoneprivate_tz.cpp.
| #define TZ_MAX_LEAPS 50 |
Definition at line 157 of file qtimezoneprivate_tz.cpp.
| #define TZ_MAX_TIMES 1200 |
Definition at line 154 of file qtimezoneprivate_tz.cpp.
| #define TZ_MAX_TYPES 256 |
Definition at line 155 of file qtimezoneprivate_tz.cpp.
| typedef QHash< QByteArray, QTzTimeZone > QTzTimeZoneHash |
Definition at line 51 of file qtimezoneprivate_tz.cpp.
|
inlinestatic |
Definition at line 524 of file qtimezoneprivate_tz.cpp.
Referenced by asciiIsQuotedNameChar().
|
inlinestatic |
Definition at line 531 of file qtimezoneprivate_tz.cpp.
References asciiIsLetter().
|
static |
Definition at line 397 of file qtimezoneprivate_tz.cpp.
|
static |
Definition at line 416 of file qtimezoneprivate_tz.cpp.
|
static |
Definition at line 684 of file qtimezoneprivate_tz.cpp.
|
static |
Definition at line 184 of file qtimezoneprivate_tz.cpp.
|
static |
Definition at line 86 of file qtimezoneprivate_tz.cpp.
Definition at line 56 of file qtimezoneprivate_tz.cpp.
|
static |
Definition at line 502 of file qtimezoneprivate_tz.cpp.
References parsePosixTime().
|
static |
Definition at line 459 of file qtimezoneprivate_tz.cpp.
Referenced by parsePosixOffset().
|
static |
Definition at line 497 of file qtimezoneprivate_tz.cpp.
|
static |
Definition at line 295 of file qtimezoneprivate_tz.cpp.
|
static |
Definition at line 192 of file qtimezoneprivate_tz.cpp.
|
static |
Definition at line 352 of file qtimezoneprivate_tz.cpp.
|
static |
Definition at line 325 of file qtimezoneprivate_tz.cpp.
|
static |
Definition at line 379 of file qtimezoneprivate_tz.cpp.
|
static |
Definition at line 237 of file qtimezoneprivate_tz.cpp.
|
static |
Definition at line 273 of file qtimezoneprivate_tz.cpp.
| Q_DECLARE_TYPEINFO | ( | QTzTransition | , |
| Q_PRIMITIVE_TYPE | ) |
| Q_DECLARE_TYPEINFO | ( | QTzType | , |
| Q_PRIMITIVE_TYPE | ) |
| Q_GLOBAL_STATIC | ( | const QTzTimeZoneHash | , |
| tzZones | , | ||
| loadTzTimeZones() | ) |
|
static |
Definition at line 621 of file qtimezoneprivate_tz.cpp.