From 7d6c28285931563c12bef8c7edcec2938ebaf980 Mon Sep 17 00:00:00 2001 From: Kuy Krawczeniuk Date: Fri, 26 Mar 2021 14:27:50 -0700 Subject: [PATCH] Remove "to_datetime" helper method. This can be done explicitly when necessary. --- freqtrade/configuration/timerange.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/freqtrade/configuration/timerange.py b/freqtrade/configuration/timerange.py index c3d4d2595..625233754 100644 --- a/freqtrade/configuration/timerange.py +++ b/freqtrade/configuration/timerange.py @@ -34,10 +34,6 @@ class TimeRange: return (self.starttype == other.starttype and self.stoptype == other.stoptype and self.startts == other.startts and self.stopts == other.stopts) - def to_datetime(self) -> (datetime, datetime): - return datetime.fromtimestamp(self.startts, timezone.utc), \ - datetime.fromtimestamp(self.stopts, timezone.utc) - def subtract_start(self, seconds: int) -> None: """ Subtracts from startts if startts is set.