ktimezones.h
The KTimezoneDetails class contains extended functions related to a timezone.
Definition ktimezones.h:226
virtual void gotHeader(unsigned ttIsGmtCnt, unsigned ttIsStdCnt, unsigned leapCnt, unsigned timeCnt, unsigned typeCnt, unsigned charCnt)
Called when the header is seen.
Definition ktimezones.cpp:645
virtual void gotLeapAdjustment(int index, unsigned leapTime, unsigned leapSeconds)
Called when a leap second adjustment is seen.
Definition ktimezones.cpp:650
virtual void gotLocalTime(int index, int gmtOff, bool isDst, unsigned abbrIndex)
Called when a local time is seen.
Definition ktimezones.cpp:653
virtual void gotIsUTC(int index, bool isUTC)
Called when a UTC/local time indicator is seen.
Definition ktimezones.cpp:665
virtual void gotLocalTimeIndex(int index, unsigned localTimeIndex)
Called when a local time index is seen.
Definition ktimezones.cpp:656
virtual void gotIsStandard(int index, bool isStandard)
Called when a standard/wall time indicator is seen.
Definition ktimezones.cpp:659
virtual void gotTransitionTime(int index, unsigned transitionTime)
Called when a transition time is seen.
Definition ktimezones.cpp:662
virtual void gotAbbreviation(int index, const TQString &abbr)
Called when a timezone abbreviation is seen.
Definition ktimezones.cpp:642
virtual bool parse(const TQString &zone, KTimezoneDetails &dataReceiver) const
Extract timezone detail information.
Definition ktimezones.cpp:688
The KTimezone class contains core functions related to a timezone.
Definition ktimezones.h:86
static bool isValidLatitude(float latitude)
A test for a valid latitude.
Definition ktimezones.cpp:195
TQDateTime convert(const KTimezone *newZone, const TQDateTime &dateTime) const
Convert a date/time (which is interpreted as being localtime in this timezone) into localtime in the ...
Definition ktimezones.cpp:235
static bool isValidLongitude(float longitude)
A test for a valid longitude.
Definition ktimezones.cpp:200
static const float UNKNOWN
A representation for unknown locations; this is a float that does not represent a real latitude or lo...
Definition ktimezones.h:92
KTimezone(TDESharedPtr< KTimezoneSource > db, const TQString &name, const TQString &countryCode=TQString(), float latitude=UNKNOWN, float longitude=UNKNOWN, const TQString &comment=TQString())
Create a timezone.
Definition ktimezones.cpp:205
TQString countryCode() const
Returns the two-letter country code of the timezone.
Definition ktimezones.cpp:263
bool parse(KTimezoneDetails &dataReceiver) const
Extract timezone detail information.
Definition ktimezones.cpp:320
int offset(TQt::TimeSpec basisSpec=TQt::UTC) const
Returns the current offset of this timezone to UTC or the local timezone in seconds.
Definition ktimezones.cpp:283
const KTimezone * zone(const TQString &name)
Returns the given timezone.
Definition ktimezones.cpp:622
Trinity API Reference