utils.dates

Provides accounting specific date utilities.

Module Contents

Functions

get_dates(→ tuple)

Returns the start, end and period start dates given the inputs provided.

utils.dates.get_dates(session, start_date: datetime.datetime = None, end_date: datetime.datetime = None) tuple

Returns the start, end and period start dates given the inputs provided.

Parameters:
  • start_date (datetime) – The start date.

  • end_date (datetime) – The end date.