Timezone
Object Hierarchy:
Description:
This is the ICalTimezone instance.
Namespace: ICal
Package: libical-glib
Content:
Static methods:
- public static void free_builtin_timezones ()
Frees any builtin timezone information.
- public static void free_zone_directory ()
Frees memory dedicated to the zonefile directory.
- public static unowned Timezone? get_builtin_timezone (string? location)
Returns a single builtin timezone, given its Olson city name.
- public static unowned Timezone get_builtin_timezone_from_offset (int offset, string? tzname)
Returns a single builtin timezone, given its offset.
- public static unowned Timezone get_builtin_timezone_from_tzid (string? tzid)
Returns a single builtin timezone, given its TZID.
- public static unowned Array get_builtin_timezones ()
Returns a list of builtin timezones.
- public static bool get_builtin_tzdata ()
Gets whether to use builtin timezones files.
- public static string get_location_from_vtimezone (Component component)
Gets the location of the vtimezone in component.
- public static string get_tznames_from_vtimezone (Component component)
Gets the name of the vtimezone in component.
- public static unowned Timezone get_utc_timezone ()
Returns the UTC timezone.
- public static unowned string get_zone_directory ()
Gets the directory to look for the zonefiles.
- public static void release_zone_tab ()
Frees memory dedicated to the zonefile directory.
- public static void set_builtin_tzdata (bool @set)
Sets whether to use builtin timezones files.
- public static void set_tzid_prefix (string new_prefix)
Sets the prefix to be used for tzid's generated from system tzdata.
- public static void set_zone_directory (string path)
Sets the directory to look for the zonefiles.
Creation methods:
- public Timezone ()
The constructor of the type Timezone.
Methods:
- public Timezone copy ()
The clone method for Timezone.
- public int dump_changes (int max_year, FileStream fp)
Outputs a list of timezone changes for the given timezone to the given file, up to the maximum year given.
- public Component get_component ()
Returns the VTIMEZONE component of a timezone.
- public unowned string get_display_name ()
Gets the display name of the this.
- public double get_latitude ()
Returns the latitude of a builtin timezone.
- public unowned string? get_location ()
Returns the city name of a timezone, or null , when none is set or when this is also null.
- public double get_longitude ()
Returns the longitude of a builtin timezone.
- public unowned string? get_tzid ()
Returns the TZID of a timezone, or null, when none is set or when this is also null.
- public unowned string? get_tznames ()
Returns the TZNAME properties used in the latest STANDARD and DAYLIGHT components.
- public int get_utc_offset (Time? tt, out int is_daylight)
Calculates the UTC offset of a given local time in the given timezone.
- public int get_utc_offset_of_utc_time (Time tt, out int is_daylight)
Calculates the UTC offset of a given UTC time in the given timezone.
- public int set_component (Component comp)
Sets the VTIMEZONE component of Timezone, initializing the tzid, location and tzname fields.
Inherited Members:
All known members inherited from class ICal.Object
All known members inherited from class GLib.Object