18#include "libical_ical_export.h"
24#if !defined(ICALTIMEZONE_DEFINED)
25#define ICALTIMEZONE_DEFINED
123LIBICAL_ICAL_EXPORT
void icaltimezone_convert_time(
struct icaltimetype *tt,
152LIBICAL_ICAL_EXPORT
icalarray *icaltimezone_array_new(
void);
154LIBICAL_ICAL_EXPORT
void icaltimezone_array_append_from_vtimezone(
icalarray *timezones,
155 icalcomponent *child);
157LIBICAL_ICAL_EXPORT
void icaltimezone_array_free(
icalarray *timezones);
162LIBICAL_ICAL_EXPORT
void icaltimezone_expand_vtimezone(icalcomponent *comp,
184LIBICAL_ICAL_EXPORT
void icaltimezone_truncate_vtimezone(icalcomponent *vtz,
202LIBICAL_ICAL_EXPORT
void icaltimezone_release_zone_tab(
void);
207LIBICAL_ICAL_EXPORT
void icaltimezone_set_builtin_tzdata(
bool set);
209LIBICAL_ICAL_EXPORT
bool icaltimezone_get_builtin_tzdata(
void);
235extern const char *icaltimezone_tzid_prefix(
void);
struct _icalarray icalarray
A struct representing an icalarray object.
Definition icalarray.h:28
struct _icaltimezone icaltimezone
An opaque struct representing a timezone. We declare this here to avoid a circular dependency.
Definition icaltime.h:84
icaltimezone * icaltimezone_new(void)
Creates a new icaltimezone.
Definition icaltimezone.c:201
void icaltimezone_set_tzid_prefix(const char *new_prefix)
Definition icaltimezone.c:2167
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:1441
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:813
double icaltimezone_get_longitude(icaltimezone *zone)
Returns the longitude of a builtin timezone.
Definition icaltimezone.c:1222
void free_zone_directory(void)
Definition icaltimezone.c:2159
char * icaltimezone_get_location_from_vtimezone(icalcomponent *component)
Gets the LOCATION or X-LIC-LOCATION property from a VTIMEZONE.
Definition icaltimezone.c:344
char * icaltimezone_get_tznames_from_vtimezone(icalcomponent *component)
Gets the TZNAMEs used for the last STANDARD & DAYLIGHT components in a VTIMEZONE.
Definition icaltimezone.c:371
const char * get_zone_directory(void)
Definition icaltimezone.c:2139
icalcomponent * icaltimezone_get_component(icaltimezone *zone)
Returns the VTIMEZONE component of a timezone.
Definition icaltimezone.c:1233
void icaltimezone_free_builtin_timezones(void)
Releases builtin timezone memory.
Definition icaltimezone.c:1336
const char * icaltimezone_get_tznames(icaltimezone *zone)
Definition icaltimezone.c:1200
icaltimezone * icaltimezone_get_builtin_timezone(const char *location)
Returns a single builtin timezone, given its Olson city name.
Definition icaltimezone.c:1342
const char * icaltimezone_get_location(icaltimezone *zone)
Definition icaltimezone.c:1189
icalarray * icaltimezone_get_builtin_timezones(void)
Returns an icalarray of icaltimezone structs, one for each builtin timezone.
Definition icaltimezone.c:1328
const char * icaltimezone_get_tzid(icaltimezone *zone)
Definition icaltimezone.c:1178
icaltimezone * icaltimezone_get_utc_timezone(void)
Returns the UTC timezone.
Definition icaltimezone.c:1538
void icaltimezone_free(icaltimezone *zone, int free_struct)
Frees all memory used for the icaltimezone.
Definition icaltimezone.c:250
const char * icaltimezone_get_display_name(icaltimezone *zone)
Returns the timezone name to display to the user.
Definition icaltimezone.c:1269
int icaltimezone_set_component(icaltimezone *zone, icalcomponent *comp)
Sets the VTIMEZONE component of an icaltimezone, initializing the tzid, location & tzname fields.
Definition icaltimezone.c:1244
double icaltimezone_get_latitude(icaltimezone *zone)
Returns the latitude of a builtin timezone.
Definition icaltimezone.c:1211
icaltimezone * icaltimezone_get_builtin_timezone_from_tzid(const char *tzid)
Returns a single builtin timezone, given its TZID.
Definition icaltimezone.c:1472
bool 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:1924
void set_zone_directory(const char *path)
Definition icaltimezone.c:2148
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:971
Definition icaltimezoneimpl.h:14
icalcomponent * component
Definition icaltimezoneimpl.h:40
icalarray * changes
Definition icaltimezoneimpl.h:56
char * location
Definition icaltimezoneimpl.h:21
char * tzid
Definition icaltimezoneimpl.h:15
int end_year
Definition icaltimezoneimpl.h:51