Manages a cache of time zone information.
More...
#include </home/doug/src/SoftwareAndServices/libSaSiCalendar/icaldata.hpp>
|
class | tzidKey |
| Manage time zone id's. More...
|
|
class | tzidUpdate |
| A list of instance times and switch to value to be used when expanding instance date and date-time values. More...
|
|
Manages a cache of time zone information.
Definition at line 811 of file icaldata.hpp.
◆ tzidData()
SoftwareAndServices::Library::iCalendar::tzidData::tzidData |
( |
CalendarId_t |
calId | ) |
|
tzidData - Constructor
- Parameters
-
calId | The ID of the icalendar object. |
◆ ~tzidData()
virtual SoftwareAndServices::Library::iCalendar::tzidData::~tzidData |
( |
| ) |
|
|
virtual |
◆ addTzid()
bool SoftwareAndServices::Library::iCalendar::tzidData::addTzid |
( |
const char * |
tzid, |
|
|
iCalendar * |
ical |
|
) |
| |
Add a TZID to an icalendar object.
Returns TRUE if added or if already exists. If added, it expands the instances and remembers them.
- Parameters
-
tzid | The TZID to add. |
ical | Add to this calendar. |
- Returns
- TRUE if added or if already existed.
◆ dtToUtc()
Convert the date_time to UTC from TZID.
- Parameters
-
ical | From this icalendar object. |
dt | From this date time. |
tzid From this time zone ID.
- Returns
- The dt converted to UTC date-time.
◆ findTzidData()
static tzidData* SoftwareAndServices::Library::iCalendar::tzidData::findTzidData |
( |
const char * |
tzid, |
|
|
CalendarId_t |
calid |
|
) |
| |
|
static |
Find tzidData for calid by tzid.
- Parameters
-
tzid | The tzid to look for. |
calid | In this calendar. |
- Returns
- Matching tzidData, or NULL if none.
◆ getUtcOffset() [1/2]
static long SoftwareAndServices::Library::iCalendar::tzidData::getUtcOffset |
( |
iCalendar * |
ical, |
|
|
const char * |
tzid, |
|
|
date * |
aDate |
|
) |
| |
|
static |
Get the UTC Offset for the provided date.
- Parameters
-
ical | For this icalendar object. |
tzid | For this time zone id. |
On | this date. |
- Returns
- The UTC offset in seconds.
◆ getUtcOffset() [2/2]
static long SoftwareAndServices::Library::iCalendar::tzidData::getUtcOffset |
( |
iCalendar * |
ical, |
|
|
const char * |
tzid, |
|
|
date_time * |
dt |
|
) |
| |
|
static |
Get the UTC Offset for the provided time.
- Parameters
-
ical | For this icalendar object. |
tzid | For this time zone id. |
On | this date time. |
- Returns
- The UTC offset in seconds.
◆ getvTimezone()
static vtimezone* SoftwareAndServices::Library::iCalendar::tzidData::getvTimezone |
( |
iCalendar * |
ical, |
|
|
const char * |
tzid |
|
) |
| |
|
static |
Get a VTIMEZONE object that matches tzid.
- Parameters
-
ical | The iCalendar object. |
tzid | The tzid to look up. |
- Returns
- A VTIMEZONE object that matches tzid.
◆ calId
CalendarId_t SoftwareAndServices::Library::iCalendar::tzidData::calId |
The calendar ID this data belongs to.
Definition at line 994 of file icaldata.hpp.
◆ entries
std::vector<tzidEntry*>* SoftwareAndServices::Library::iCalendar::tzidData::entries |
◆ instances
std::vector<tzidUpdate*>* SoftwareAndServices::Library::iCalendar::tzidData::instances |
◆ tzidCache
std::map<tzidKey*, tzidData*>* SoftwareAndServices::Library::iCalendar::tzidData::tzidCache |
|
static |
The documentation for this class was generated from the following file: