TimeFormat#

class caf.base.data_structures.TimeFormat(value)[source]#

Bases: Enum

Class for time formats.

Attributes

Methods

get_time_periods()

Get time periods.

conversion_order()

Return a conversion order.

avg_hour_to_total_hour_factors()

Get a dictionary of conversion factors.

total_hour_to_avg_hour_factors()

Get a dictionary of conversion factors.

get(value)

Get an instance of this with value.

get_conversion_factors(to_time_format)

Get the conversion factors for each time period.

Attributes Documentation

AVG_WEEK = 'avg_week'#
AVG_DAY = 'avg_day'#
AVG_HOUR = 'avg_hour'#