26#include "libical_ical_export.h"
31#if !defined(ICALTIMEZONE_DEFINED)
32#define ICALTIMEZONE_DEFINED
130LIBICAL_ICAL_EXPORT
void icaltimezone_convert_time(
struct icaltimetype *tt,
161LIBICAL_ICAL_EXPORT
icalarray *icaltimezone_array_new(
void);
163LIBICAL_ICAL_EXPORT
void icaltimezone_array_append_from_vtimezone(
icalarray *timezones,
166LIBICAL_ICAL_EXPORT
void icaltimezone_array_free(
icalarray *timezones);
171LIBICAL_ICAL_EXPORT
void icaltimezone_expand_vtimezone(
icalcomponent *comp,
193LIBICAL_ICAL_EXPORT
void icaltimezone_truncate_vtimezone(
icalcomponent *vtz,
211LIBICAL_ICAL_EXPORT
void icaltimezone_release_zone_tab(
void);
216LIBICAL_ICAL_EXPORT
void icaltimezone_set_builtin_tzdata(
int set);
218LIBICAL_ICAL_EXPORT
int icaltimezone_get_builtin_tzdata(
void);
244extern const char *icaltimezone_tzid_prefix(
void);
icaltimezone * icaltimezone_new(void)
Creates a new icaltimezone.
Definition icaltimezone.c:211
void icaltimezone_set_tzid_prefix(const char *new_prefix)
Definition icaltimezone.c:2186
icaltimezone * icaltimezone_get_builtin_timezone_from_offset(int offset, const char *tzname)
Returns a single builtin timezone, given its offset from UTC.
Definition icaltimezone.c:1445
int icaltimezone_dump_changes(icaltimezone *zone, int max_year, FILE *fp)
Outputs a list of timezone changes for the given timezone to the given file, up to the maximum year g...
Definition icaltimezone.c:1944
int icaltimezone_get_utc_offset(icaltimezone *zone, struct icaltimetype *tt, int *is_daylight)
Calculates the UTC offset of a given local time in the given timezone.
Definition icaltimezone.c:818
double icaltimezone_get_longitude(icaltimezone *zone)
Returns the longitude of a builtin timezone.
Definition icaltimezone.c:1226
void free_zone_directory(void)
Definition icaltimezone.c:2178
char * icaltimezone_get_location_from_vtimezone(icalcomponent *component)
Gets the LOCATION or X-LIC-LOCATION property from a VTIMEZONE.
Definition icaltimezone.c:354
char * icaltimezone_get_tznames_from_vtimezone(icalcomponent *component)
Gets the TZNAMEs used for the last STANDARD & DAYLIGHT components in a VTIMEZONE.
Definition icaltimezone.c:381
const char * get_zone_directory(void)
Definition icaltimezone.c:2158
icalcomponent * icaltimezone_get_component(icaltimezone *zone)
Returns the VTIMEZONE component of a timezone.
Definition icaltimezone.c:1237
void icaltimezone_free_builtin_timezones(void)
Releases builtin timezone memory.
Definition icaltimezone.c:1340
const char * icaltimezone_get_tznames(icaltimezone *zone)
Definition icaltimezone.c:1204
icaltimezone * icaltimezone_get_builtin_timezone(const char *location)
Returns a single builtin timezone, given its Olson city name.
Definition icaltimezone.c:1346
const char * icaltimezone_get_location(icaltimezone *zone)
Definition icaltimezone.c:1193
icalarray * icaltimezone_get_builtin_timezones(void)
Returns an icalarray of icaltimezone structs, one for each builtin timezone.
Definition icaltimezone.c:1332
const char * icaltimezone_get_tzid(icaltimezone *zone)
Definition icaltimezone.c:1182
icaltimezone * icaltimezone_get_utc_timezone(void)
Returns the UTC timezone.
Definition icaltimezone.c:1542
void icaltimezone_free(icaltimezone *zone, int free_struct)
Frees all memory used for the icaltimezone.
Definition icaltimezone.c:260
const char * icaltimezone_get_display_name(icaltimezone *zone)
Returns the timezone name to display to the user.
Definition icaltimezone.c:1273
int icaltimezone_set_component(icaltimezone *zone, icalcomponent *comp)
Sets the VTIMEZONE component of an icaltimezone, initializing the tzid, location & tzname fields.
Definition icaltimezone.c:1248
double icaltimezone_get_latitude(icaltimezone *zone)
Returns the latitude of a builtin timezone.
Definition icaltimezone.c:1215
icaltimezone * icaltimezone_get_builtin_timezone_from_tzid(const char *tzid)
Returns a single builtin timezone, given its TZID.
Definition icaltimezone.c:1476
void set_zone_directory(const char *path)
Definition icaltimezone.c:2167
int icaltimezone_get_utc_offset_of_utc_time(icaltimezone *zone, struct icaltimetype *tt, int *is_daylight)
Calculates the UTC offset of a given UTC time in the given timezone.
Definition icaltimezone.c:975
Definition icalarray.h:36
Definition icaltimezoneimpl.h:23
icalcomponent * component
Definition icaltimezoneimpl.h:49
icalarray * changes
Definition icaltimezoneimpl.h:65
char * location
Definition icaltimezoneimpl.h:30
char * tzid
Definition icaltimezoneimpl.h:24
int end_year
Definition icaltimezoneimpl.h:60
Definition icalcomponent.c:36
Definition icaltime.h:105