icalendar.prop.dt.list module#

class icalendar.prop.dt.list.vDDDLists(dt_list, params=None)[source]#

Bases: object

A list of vDDDTypes values.

default_value: ClassVar[str] = 'DATE-TIME'#
property dt: TimeBase#

Return the time/date value of the list.

This is a compatibility method for the vDDDTypes interface.

Returns:

The first value of the list.

Raises:

IndexError – If the list is empty.

dts: list[vDDDTypes]#
classmethod examples()[source]#

Examples of vDDDLists.

Return type:

list[Self]

static from_ical(ical, timezone=None)[source]#
classmethod from_jcal(jcal_property)[source]#

Parse jCal from RFC 7265.

Parameters:

jcal_property (list) – The jCal property to parse.

Raises:

JCalParsingError – If the jCal provided is invalid.

Return type:

Self

classmethod from_xcal(xml)[source]#

Parse xCal according to RFC 6321.

Parameters:
  • parser – Required. The xCal to parse or a parser.

  • params – Required. The parameters of the xCal element.

Raises:

XCalParsingError – If the provided xCal is invalid.

Return type:

VProp

params: Parameters#
to_ical()[source]#
to_jcal(name)[source]#

The jCal representation of this property according to RFC 7265.

Return type:

list

to_xcal(element)[source]#

Convert a vDDDTypes to an xCal element.

Return type:

None