| libjana-ecal Reference Manual | ||||
|---|---|---|---|---|
JanaEcalTimeJanaEcalTime — An implementation of JanaTime using libecal |
JanaEcalTime;
JanaTime* jana_ecal_time_new ();
JanaTime* jana_ecal_time_new_from_icaltime (const icaltimetype *time);
void jana_ecal_time_set_location (JanaEcalTime *self,
const gchar *location);
const gchar* jana_ecal_time_get_location (JanaEcalTime *self);
JanaEcalTime is an implementation of JanaTime that provides a wrapper over icaltimetype, using libecal.
typedef struct _JanaEcalTime JanaEcalTime;
The JanaEcalTime struct contains only private data.
JanaTime* jana_ecal_time_new ();
Creates a new JanaEcalTime.
| Returns : | A new JanaEcalTime, cast as a JanaTime. |
JanaTime* jana_ecal_time_new_from_icaltime (const icaltimetype *time);
Creates a new JanaEcalTime using the given icaltimetype.
time : |
An icaltimetype |
| Returns : | A new JanaEcalTime, cast as a JanaTime. |
void jana_ecal_time_set_location (JanaEcalTime *self, const gchar *location);
Sets the location of the time, using a timezone string such as
"Europe/London", as opposed to the libc timezone name as used in
jana_time_set_tzname(). The time will still be adjusted for the new
timezone. A NULL location parameter will be treated as "UTC".
self : |
A JanaEcalTime |
location : |
An iCal/vCalendar timezone string |
const gchar* jana_ecal_time_get_location (JanaEcalTime *self);
Retrieves the full timezone name of the given time. See
jana_ecal_time_set_location().
self : |
A JanaEcalTime |
| Returns : | A string containing the full timezone name. This is owned by libecal and must not be freed. |