pydit.wrangling.date_time_calculationsΒΆ

Module with functions for date and time calculations. IMPORTANT: adapted to England and Wales only, edit the calendar class to regional specs.

Functions

calculate_business_hours

Calculate the number of business hours between two datetimes.

calculate_business_hours_fast

Calculate the number of business hours between two datetimes.

date_relative_in_words

Return a human description of how many months ago or in the future a date occurred/occurs.

first_and_end_of_month

Function to return the first and last day of a month

Classes

EnglandAndWalesHolidayCalendar

Calendar class for England and Wales.

business_calendar

Class to calculate the business hours between datetimes