jana-ecal-utils

jana-ecal-utils — A set of utility functions for libjana-ecal

Synopsis




JanaTime*           jana_ecal_utils_time_now            (const gchar *location);
JanaTime*           jana_ecal_utils_time_today          (const gchar *location);
gchar*              jana_ecal_utils_guess_location      ();
gchar**             jana_ecal_utils_get_locations       ();

Description

jana-ecal-utils contains a set of libjana-ecal related utility functions.

Details

jana_ecal_utils_time_now ()

JanaTime*           jana_ecal_utils_time_now            (const gchar *location);

Creates a new JanaEcalTime with the current time of the given location.

location : A full timezone name
Returns : A new JanaEcalTime, cast as a JanaTime.

jana_ecal_utils_time_today ()

JanaTime*           jana_ecal_utils_time_today          (const gchar *location);

Creates a new JanaEcalTime with the current date of the given location.

location : A full timezone name
Returns : A new JanaEcalTime, cast as a JanaTime.

jana_ecal_utils_guess_location ()

gchar*              jana_ecal_utils_guess_location      ();

Tries to guess the location by checking for common system files and finally falling back on the first location that matches the current system timezone.

Returns : A newly allocated string with the guessed location.

jana_ecal_utils_get_locations ()

gchar**             jana_ecal_utils_get_locations       ();

Retrieves the built-in list of timezone locations from libecal.

Returns : A newly allocated string array, to be freed with g_strfreev().