- add start date and start time to filename

This commit is contained in:
2024-10-14 19:15:06 +02:00
parent 26f5647cb4
commit 5841ffa2ed
2 changed files with 12 additions and 5 deletions
+8
View File
@@ -15,6 +15,14 @@ def get_date() -> dict:
return _result
def to_time_str(_date: dict):
return f"{_date['hour']:02d}-{_date['min']:02d}-{_date['sec']:02d}"
def to_date_str(_date: dict):
return f"{_date['year']:04d}-{_date['month']:02d}-{_date['day']:02d}"
def date_has_changed(d1: dict, d2: dict, fields=['year', 'month', 'day']):
count = 0