:right-sidebar: True TimeSpan =================================================================== .. currentmodule:: gi.repository.ICalGLib .. class:: TimeSpan(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.ICalGLib.Object`, :class:`~gi.repository.GObject.Object` This is the ICalTimeSpan instance. Constructors ------------ .. rst-class:: interim-class .. class:: TimeSpan :no-index: .. classmethod:: new(dtstart: ~gi.repository.ICalGLib.Time, dtend: ~gi.repository.ICalGLib.Time, is_busy: int) -> ~gi.repository.ICalGLib.TimeSpan Creates a new :obj:`~gi.repository.ICalGLib.TimeSpan`\. .. versionadded:: 1.0 :param dtstart: The start of :obj:`~gi.repository.ICalGLib.TimeSpan` :param dtend: The end of :obj:`~gi.repository.ICalGLib.TimeSpan` :param is_busy: Whether this span is busy .. classmethod:: new_timet(start: int, end: int, is_busy: bool) -> ~gi.repository.ICalGLib.TimeSpan Creates a new :obj:`~gi.repository.ICalGLib.TimeSpan`\. Free it with :func:`~gi.repository.GObject.GObject.Object.unref`, when no longer needed. .. versionadded:: 3.0.5 :param start: Start of the time span :param end: End of the time span :param is_busy: Whether the time span is busy Methods ------- .. rst-class:: interim-class .. class:: TimeSpan :no-index: .. method:: clone() -> ~gi.repository.ICalGLib.TimeSpan Creates a new :obj:`~gi.repository.ICalGLib.TimeSpan`\, clone of ``src``\. Free it with :func:`~gi.repository.GObject.GObject.Object.unref`, when no longer needed. .. versionadded:: 3.0.5 .. method:: contains(container: ~gi.repository.ICalGLib.TimeSpan) -> int Checks whether one :obj:`~gi.repository.ICalGLib.TimeSpan` is contained in another :obj:`~gi.repository.ICalGLib.TimeSpan`\. .. versionadded:: 1.0 :param container: The target container of :obj:`~gi.repository.ICalGLib.TimeSpan` .. method:: get_end() -> int Gets the end of :obj:`~gi.repository.ICalGLib.TimeSpan`\. .. versionadded:: 1.0 .. method:: get_is_busy() -> bool Gets the is_busy of :obj:`~gi.repository.ICalGLib.TimeSpan`\. .. versionadded:: 1.0 .. method:: get_start() -> int Gets the start of :obj:`~gi.repository.ICalGLib.TimeSpan`\. .. versionadded:: 1.0 .. method:: overlaps(s2: ~gi.repository.ICalGLib.TimeSpan) -> int Checks whether two spans overlap. .. versionadded:: 1.0 :param s2: The second :obj:`~gi.repository.ICalGLib.TimeSpan` .. method:: set_end(end: int) -> None Sets the end of :obj:`~gi.repository.ICalGLib.TimeSpan`\. .. versionadded:: 1.0 :param end: The end .. method:: set_is_busy(is_busy: bool) -> None Sets the is_busy of :obj:`~gi.repository.ICalGLib.TimeSpan`\. .. versionadded:: 1.0 :param is_busy: The is_busy .. method:: set_start(start: int) -> None Sets the start of :obj:`~gi.repository.ICalGLib.TimeSpan`\. .. versionadded:: 1.0 :param start: The start