filter3 näidis kasutades dialog programmi
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user