17 #include <QStringList>
23 #if defined(TZ_LIBRARY_BUILD)
24 # define TZLIB_EXPORT Q_DECL_EXPORT
26 # define TZLIB_EXPORT Q_DECL_IMPORT
51 bool isDST()
const{
return m_isdst;}
56 bool matches(qint64 ts)
const{
return m_start<=ts && m_end>ts;}
70 TZRule(qint64 start,qint32 off,QString
abbr,
bool isdst);
72 void setEnd(qint64 e){m_end=e;}
98 QList<TZRule> rulesForYear(
int)
const;
104 TZRule ruleForTime(qint64)
const;
107 TZRule ruleForLocalTime(qint64)
const;
134 bool haveDST()
const{
return m_abbr!=m_abbrdst;}
138 QString m_str,m_abbr,m_abbrdst;
139 qint32 m_off,m_offdst;
140 StartType m_types,m_typee;
141 qint32 m_months,m_weeks,m_days,m_times;
142 qint32 m_monthe,m_weeke,m_daye,m_timee;
145 TZRule createRule(qint32 year,
bool start)
const;
161 TZFile(
const QByteArray&);
173 QString
name()
const{
return m_name;}
179 TZRule ruleForTime(qint64);
182 TZRule ruleForLocalTime(qint64);
197 QString dirName()
const;
200 QString version()
const;
203 static QString builtinVersion();
206 static QString libraryVersion();
209 static QStringList searchPath();
211 static void setSearchPath(
const QStringList&);
214 void strConstruct(QString);
216 bool load(
const QByteArray&);
218 int load(
const QByteArray&,
char);
222 QList<TZRule>m_cache;
224 QString m_name,m_fname;
226 static QStringList m_search;
Definition: include/tzfile.h:114
QString standardName() const
Definition: include/tzfile.h:122
bool operator<=(const TZRule &r) const
Definition: include/tzfile.h:64
Definition: include/tzfile.h:112
bool isDST() const
Definition: include/tzfile.h:51
qint64 endTime() const
Definition: include/tzfile.h:47
bool matches(qint64 ts) const
Definition: include/tzfile.h:56
qint32 daylightOffset() const
Definition: include/tzfile.h:131
Definition: include/tzfile.h:33
bool isValid() const
Definition: include/tzfile.h:170
QString daylightName() const
Definition: include/tzfile.h:125
#define TZLIB_EXPORT
Definition: include/tzfile.h:26
qint32 offsetFromUTC() const
Definition: include/tzfile.h:53
Definition: include/tzfile.h:81
void setName(QString n)
Definition: include/tzfile.h:176
QString fileName() const
returns the full file name of the zone file, if known
Definition: include/tzfile.h:194
Definition: include/tzfile.h:116
static char const * abbr(struct tm const *)
Definition: zdump.c:1175
QList< TZRule > fileRules() const
Definition: include/tzfile.h:185
QString asString() const
Definition: include/tzfile.h:95
QString name() const
Definition: include/tzfile.h:173
bool matchesLocal(qint64 ts) const
Definition: include/tzfile.h:59
bool haveDST() const
Definition: include/tzfile.h:134
PosixRule posixRule() const
Definition: include/tzfile.h:188
qint64 startTime() const
Definition: include/tzfile.h:45
Definition: include/tzfile.h:149
QString abbreviation() const
Definition: include/tzfile.h:49
StartType
Definition: include/tzfile.h:110
qint32 standardOffset() const
Definition: include/tzfile.h:128
QList< TZRule > cachedRules() const
Definition: include/tzfile.h:191
bool operator<(const TZRule &r) const
Definition: include/tzfile.h:62