kepler.api.time_util module

The module contains some time related utility functions.

kepler.api.time_util.next_workday(dt=datetime.datetime(2015, 6, 22, 18, 18, 33, 145944), delta=1)

The function returns the next workday after at least delta days. The delta can be negative, effectively inverting the function to find previous workdays.

Parameters:
  • dt – The time point from which the search is started. Defaults to datetime.now().
  • delta – The delta days from dt.
Returns:

The next or previous workday according to the given minimum delta days.