TZ-Lib
$VERSION$
|
#include <tzfile.h>
Public Types | |
enum | StartType { StartNone, StartDay0, StartDay1, StartWeek } |
Public Member Functions | |
PosixRule () | |
PosixRule (const PosixRule &) | |
PosixRule (QString) | |
QString | asString () const |
QString | daylightName () const |
qint32 | daylightOffset () const |
bool | haveDST () const |
TZRule | nextRule (const TZRule &) const |
PosixRule & | operator= (const PosixRule &) |
TZRule | ruleForLocalTime (qint64) const |
TZRule | ruleForTime (qint64) const |
QList< TZRule > | rulesForYear (int) const |
QString | standardName () const |
qint32 | standardOffset () const |
PosixRule::PosixRule | ( | ) |
instantiates an empty ruleset, always returns a UTC/empty rule
References StartWeek.
Referenced by PosixRule().
PosixRule::PosixRule | ( | const PosixRule & | p | ) |
copies a ruleset
References operator=().
PosixRule::PosixRule | ( | QString | s | ) |
References operator=(), parseTime(), parseTZname(), PosixRule(), StartDay0, StartDay1, and StartWeek.
|
inline |
returns the posix string of this ruleset
Referenced by scanFile().
|
inline |
returns the name of daylight saving time
|
inline |
returns the offset from UTC in seconds for daylight saving time
|
inline |
returns true of this rule has daylight saving time
takes the given rule and calculates the one that would follow it
References TimeZoneLib::stamp2Date().
copies a ruleset
Referenced by PosixRule().
TZRule PosixRule::ruleForLocalTime | ( | qint64 | ts | ) | const |
calculates and returns a rule for a specific timestamp moved by the prospective offset
References rulesForYear(), and TimeZoneLib::stamp2Date().
Referenced by TimeZoneLib::TZFile::ruleForLocalTime().
TZRule PosixRule::ruleForTime | ( | qint64 | ts | ) | const |
calculates and returns a rule for a specific timestamp
References rulesForYear(), and TimeZoneLib::stamp2Date().
Referenced by TimeZoneLib::TZFile::ruleForTime().
QList< TZRule > PosixRule::rulesForYear | ( | int | year | ) | const |
returns all rules that match the given year
References TimeZoneLib::daysSinceEpoch(), TimeZoneLib::SecondsPerDay, and StartNone.
Referenced by ruleForLocalTime(), and ruleForTime().
|
inline |
returns the name of standard time
|
inline |
returns the offset from UTC in seconds for standard time