pyacs.lib.timeperiod.has_in

TimePeriod.has_in implementation.

pyacs.lib.timeperiod.has_in.has_in(self, date)[source]

Return whether a date falls within this period.

Parameters:

date (datetime) – Date to test.

Returns:

True if date is in [start, end], False otherwise.

Return type:

bool