| libjana-ecal Reference Manual | ||||
|---|---|---|---|---|
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 ();
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. |
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. |
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. |