summaryrefslogtreecommitdiff
path: root/src/home/database
diff options
context:
space:
mode:
Diffstat (limited to 'src/home/database')
-rw-r--r--src/home/database/inverter.py2
-rw-r--r--src/home/database/inverter_time_formats.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/home/database/inverter.py b/src/home/database/inverter.py
index 1e967c4..fc3f74f 100644
--- a/src/home/database/inverter.py
+++ b/src/home/database/inverter.py
@@ -1,5 +1,5 @@
from time import time
-from datetime import datetime
+from datetime import datetime, timedelta
from typing import Optional
from collections import namedtuple
diff --git a/src/home/database/inverter_time_formats.py b/src/home/database/inverter_time_formats.py
new file mode 100644
index 0000000..7c37d30
--- /dev/null
+++ b/src/home/database/inverter_time_formats.py
@@ -0,0 +1,2 @@
+FormatTime = '%Y-%m-%d %H:%M:%S'
+FormatDate = '%Y-%m-%d'