filter3 näidis kasutades dialog programmi

This commit is contained in:
2018-06-19 08:42:13 +03:00
parent 4c1b365b06
commit e5dddf33e3
4 changed files with 51 additions and 34 deletions

View File

@@ -13,6 +13,10 @@ except IndexError:
try:
scope_begin = datetime.strptime(sys.argv[2], "%Y-%m-%d %H:%M:%S")
except ValueError:
# Ei suutnud parsida kellaaega YYYY-mm-dd HH:MM:SS formaadis,
# proovime test formaati veel
scope_begin = datetime.strptime(sys.argv[2], "%d/%m/%Y %H:%M:%S")
except IndexError:
scope_begin = datetime.now().replace(hour=0, minute=0, second=0, microsecond=0)