Tue, 20 Aug 2024 16:08:25 +0200
Automatic upload time delta changed
scc_access/scc_access.py | file | annotate | diff | comparison | revisions |
--- a/scc_access/scc_access.py Sun Dec 03 16:39:00 2023 +0100 +++ b/scc_access/scc_access.py Tue Aug 20 16:08:25 2024 +0200 @@ -1102,10 +1102,10 @@ def automatic_upload(settings): - date_time_start = datetime.datetime.utcnow() - datetime.timedelta(hours=8) + date_time_start = datetime.datetime.utcnow() - datetime.timedelta(hours=4) date_time_start = date_time_start.replace(minute=0, second=0) start_parameter = date_time_start.strftime("%Y-%m-%dT%H:%M:%S") - date_time_stop = date_time_start + datetime.timedelta(hours=6) + date_time_stop = date_time_start + datetime.timedelta(hours=2) stop_parameter = date_time_stop.strftime("%Y-%m-%dT%H:%M:%S") # Altri esempi di utilizzo della libreria