pyacs.lib.timeperiod module

exception pyacs.lib.timeperiod.TimePeriodUndefinedError[source]

Bases: Exception

class pyacs.lib.timeperiod.TimePeriod(start_time=None, end_time=None)[source]

Bases: object

The beginning of this period as datetime object

isdefined()[source]
begin()[source]
epoch_begin()[source]
end()[source]
epoch_end()[source]
intersection(period)[source]
has_in(date)[source]

Tells whether a given date is in the period

return: True if the given date in within the period, False otherwise

display()[source]
get_info()[source]