- add start date and start time to filename
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user