ECal.ComponentRange

Fields

None

Methods

class

new (kind, datetime)

copy ()

get_datetime ()

get_kind ()

set_datetime (datetime)

set_kind (kind)

Details

class ECal.ComponentRange

Describes a range. Use the functions below to work with it.

classmethod new(kind, datetime)
Parameters:
Returns:

a newly allocated ECal.ComponentRange

Return type:

ECal.ComponentRange

Creates a new ECal.ComponentRange describing a range. The returned structure should be freed with e_cal_component_range_free(), when no longer needed.

New in version 3.34.

copy()
Returns:

a newly allocated ECal.ComponentRange, copy of self. The returned structure should be freed with e_cal_component_range_free(), when no longer needed.

Return type:

ECal.ComponentRange

New in version 3.34.

get_datetime()
Returns:

the date/time of the self, as an ECal.ComponentDateTime

Return type:

ECal.ComponentDateTime

Returns the date/time of the self. The returned ECal.ComponentDateTime is owned by self and should not be freed. It’s valid until the self is freed or its date/time changed.

New in version 3.34.

get_kind()
Returns:

the ECal.ComponentRangeKind of the self

Return type:

ECal.ComponentRangeKind

New in version 3.34.

set_datetime(datetime)
Parameters:

datetime (ECal.ComponentDateTime) – an ECal.ComponentDateTime

Set the date/time Camel.part of the self.

New in version 3.34.

set_kind(kind)
Parameters:

kind (ECal.ComponentRangeKind) – an ECal.ComponentRangeKind

Set the kind of the self.

New in version 3.34.