![]() |
![]() |
![]() |
libjana-ecal Reference Manual | |
---|---|---|---|---|
Top | Description |
JanaTime * jana_ecal_utils_time_now (const gchar *location
); JanaTime * jana_ecal_utils_time_now_local (); JanaTime * jana_ecal_utils_time_today (const gchar *location
); gchar * jana_ecal_utils_guess_location (); gchar ** jana_ecal_utils_get_locations (); #define JANA_ECAL_LOCATION_KEY #define JANA_ECAL_LOCATION_KEY_DIR
JanaTime * jana_ecal_utils_time_now (const gchar *location
);
Creates a new JanaEcalTime with the current time of the given location.
|
A full timezone name |
Returns : |
A new JanaEcalTime, cast as a JanaTime. |
JanaTime * jana_ecal_utils_time_now_local ();
Creates a new JanaEcalTime with the current time of the guessed location.
See jana_ecal_utils_guess_location()
.
Returns : |
A new JanaEcalTime, cast as a JanaTime. |
JanaTime * jana_ecal_utils_time_today (const gchar *location
);
Creates a new JanaEcalTime with the current date of the given location.
|
A full timezone name |
Returns : |
A new JanaEcalTime, cast as a JanaTime. |
gchar * jana_ecal_utils_guess_location ();
Tries to guess the location by checking for common system settings and files, and finally falling back on the first location that matches the current system timezone. See also JANA_ECAL_LOCATION_KEY.
Returns : |
A newly allocated string with the guessed location. |
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() . |
#define JANA_ECAL_LOCATION_KEY "/apps/evolution/calendar/display/timezone"
The GConf key used to determine whether to use the system timezone or to use the JANA_ECAL_LOCATION_KEY.
#define JANA_ECAL_LOCATION_KEY_DIR "/apps/evolution/calendar/display"
The parent directory of the GConf key used to store the ecal timezone location. If JANA_ECAL_LOCATION_KEY exists, this GConf directory can be monitored to detect when it has changed. See also JANA_ECAL_LOCATION_KEY.
|
JANA_ECAL_LOCATION_KEY |