swingtime.utils

Common features and functions for swingtime

Functions

cached_import(path)

create_timeslot_table([dt, items, ...])

Create a grid-like object representing a sequence of times (rows) and columns where cells are either empty or reference a wrapper object for event occasions that overlap a specific time slot.

css_class_cycler([event_type_cls])

Return a dictionary keyed by EventType abbreviations, whose values are an iterable or cycle of CSS class names.

default_css_class_cycler()

default_event_type_cls()

default_occurrence_cls()

month_boundaries([dt])

Return a 2-tuple containing the datetime instances for the first and last dates of the current month or using dt as a reference.

time_delta_total_seconds(time_delta)

Calculate the total number of seconds represented by a datetime.timedelta object

Classes

BaseMDConverter()

BaseOccurrenceProxy(occurrence, col)

A simple wrapper class for handling the presentational aspects of an Occurrence instance.

DayConverter()

DefaultOccurrenceProxy(*args, **kws)

MonthConverter()

YearConverter()