![]() |
![]() |
![]() |
libjana-ecal Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
struct JanaEcalTime; JanaTime * jana_ecal_time_new (); JanaTime * jana_ecal_time_new_from_icaltime (const icaltimetype *time
); JanaTime * jana_ecal_time_new_from_ecaltime (ECalComponentDateTime *dt
); 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.
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.
|
An icaltimetype |
Returns : |
A new JanaEcalTime, cast as a JanaTime. |
JanaTime * jana_ecal_time_new_from_ecaltime (ECalComponentDateTime *dt
);
Creates a new JanaEcalTime using the given ECalComponentDateTime
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".
|
A JanaEcalTime |
|
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()
.
|
A JanaEcalTime |
Returns : |
A string containing the full timezone name. This is owned by libecal and must not be freed. |
"icaltime"
property"icaltime" gpointer : Read / Write / Construct Only
The icaltimetype represented by this JanaTime object.