From ace0308385d779bfaf17d368906c4e128204602c Mon Sep 17 00:00:00 2001 From: "Dawn M. Foster" Date: Thu, 23 Nov 2023 10:00:03 +0000 Subject: [PATCH] removed a date function that was only used in the old bus factor code and is no longer used anywhere else --- utils/date_calcs.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/utils/date_calcs.py b/utils/date_calcs.py index a784fc0..431261c 100644 --- a/utils/date_calcs.py +++ b/utils/date_calcs.py @@ -45,36 +45,9 @@ def get_dates(days): return start_date, end_date -def convert_to_dt(start_date, end_date): - """ Converts start and end dates to datetime objects - - Parameters - ---------- - start_date : str - end_date : str - - Returns - ------- - start_dt : datetime - end_dt : datetime - - """ - from datetime import datetime, timezone - - # inputs will be date strings, output tz aware datetime - - end_dt = datetime.strptime(end_date, "'%Y-%m-%d'").replace(tzinfo=timezone.utc) - - start_dt = datetime.strptime(start_date, "'%Y-%m-%d'").replace(tzinfo=timezone.utc) - - return start_dt, end_dt - def convert_dates(start_date, end_date): """ Converts start and end dates to datetime objects. - This is different from the other function that does this, but - I don't remember why :) - Parameters ---------- start_date : str