The karbor.services.operationengine.engine.triggers.timetrigger.timeformats.calendar_time Module

class karbor.services.operationengine.engine.triggers.timetrigger.timeformats.calendar_time.ICal(start_time, pattern)

Bases: karbor.services.operationengine.engine.triggers.timetrigger.timeformats.TimeFormat

icalendar.

classmethod check_time_format(pattern)

Check time format

Parameters:pattern – The pattern of the icalendar time
compute_next_time(current_time)

Compute next time

Parameters:current_time – the time before the next time

:return datetime or None

get_min_interval()

Get minimum interval of two adjacent time points

:return int(seconds) or None