JanaEcalTime

JanaEcalTime — An implementation of JanaTime using libecal

Functions

Properties

gpointer icaltime Read / Write / Construct Only

Types and Values

struct JanaEcalTime

Object Hierarchy

    GObject
    ╰── JanaEcalTime

Implemented Interfaces

JanaEcalTime implements JanaTime.

Description

JanaEcalTime is an implementation of JanaTime that provides a wrapper over icaltimetype, using libecal.

Functions

jana_ecal_time_new ()

JanaTime *
jana_ecal_time_new ();

Creates a new JanaEcalTime.

Returns

A new JanaEcalTime, cast as a JanaTime.


jana_ecal_time_new_from_icaltime ()

JanaTime *
jana_ecal_time_new_from_icaltime (const icaltimetype *time);

Creates a new JanaEcalTime using the given icaltimetype.

Parameters

time

An icaltimetype

 

Returns

A new JanaEcalTime, cast as a JanaTime.


jana_ecal_time_new_from_ecaltime ()

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


jana_ecal_time_set_location ()

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".

Parameters

self

A JanaEcalTime

 

location

An iCal/vCalendar timezone string

 

jana_ecal_time_get_location ()

const gchar *
jana_ecal_time_get_location (JanaEcalTime *self);

Retrieves the full timezone name of the given time. See jana_ecal_time_set_location().

Parameters

self

A JanaEcalTime

 

Returns

A string containing the full timezone name. This is owned by libecal and must not be freed.

Types and Values

struct JanaEcalTime

struct JanaEcalTime;

The JanaEcalTime struct contains only private data.

Property Details

The “icaltime” property

  “icaltime”                 gpointer

The icaltimetype represented by this JanaTime object.

Flags: Read / Write / Construct Only