Class
ICalGLibTimezone
since: 3.0
Constructors
i_cal_timezone_new_full
Create a new libical-glib object from the native libical object and the owner.
since: 1.0
Functions
i_cal_timezone_array_append_from_vtimezone
Populate the array of timezones with a component.
since: 1.0
i_cal_timezone_array_destroy
The destructor of the icalarray of icaltimezone elements to fully destroy the native object.
since: 1.0
i_cal_timezone_destroy
The destructor of the type ICalTimezone
to fully destroy the object by providing 1 as the second argument
of i_cal_time_zone_free. The method is used as a default destructor for introspection.
since: 1.0
i_cal_timezone_get_builtin_timezone
Returns a single builtin timezone, given its Olson city name.
since: 1.0
i_cal_timezone_get_builtin_timezone_from_offset
Returns a single builtin timezone, given its offset.
since: 1.0
i_cal_timezone_get_builtin_timezone_from_tzid
Returns a single builtin timezone, given its TZID.
since: 1.0
i_cal_timezone_get_location_from_vtimezone
Gets the location of the vtimezone in component.
since: 2.0
i_cal_timezone_get_zone_directory
Gets the directory to look for the zonefiles.
unstable since: 3.0.17
i_cal_timezone_set_tzid_prefix
Sets the prefix to be used for tzid’s generated from system tzdata. Must be globally unique (such as a domain name owned by the developer of the calling application), and begin and end with forward slashes. Do not change or de-allocate the string buffer after calling this.
since: 1.0
Instance methods
i_cal_timezone_dump_changes
Outputs a list of timezone changes for the given timezone to the given file, up to the maximum year given.
since: 1.0
i_cal_timezone_get_location
Returns the city name of a timezone, or NULL
, when none is set or when zone
is also NULL
.
since: 1.0
i_cal_timezone_get_tzid
Returns the TZID of a timezone, or NULL
, when none is set or when zone
is also NULL
.
since: 1.0
i_cal_timezone_get_tznames
Returns the TZNAME properties used in the latest STANDARD and DAYLIGHT components. If they are the same it will return just one, e.g. “LMT”. If they are different it will format them like “EST/EDT”. Note that this may also return NULL.
since: 1.0
i_cal_timezone_get_utc_offset
Calculates the UTC offset of a given local time in the given timezone. It is the number of seconds to add to UTC to get local time. The is_daylight flag is set to 1 if the time is in daylight-savings time.
since: 1.0
i_cal_timezone_get_utc_offset_of_utc_time
Calculates the UTC offset of a given UTC time in the given timezone. It is the number of seconds to add to UTC to get local time. The is_daylight flag is set to 1 if the time is in daylight-savings time.
since: 1.0
i_cal_timezone_set_component
Sets the VTIMEZONE component of ICalTimezone
, initializing the tzid, location and tzname fields. It
returns 1 on success or 0 on failure, i.e. no TZID was found.
since: 1.0