From 6cbfb3d6c48f19271888c0945bf7fd705a08e313 Mon Sep 17 00:00:00 2001 From: Kauser Zulfiqar Date: Sun, 15 Dec 2024 22:08:10 +0100 Subject: [PATCH] changes time format to iso format --- ubermagutil/progress.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ubermagutil/progress.py b/ubermagutil/progress.py index a20c2db..4a44277 100644 --- a/ubermagutil/progress.py +++ b/ubermagutil/progress.py @@ -71,7 +71,8 @@ def bar(total, package_name, runner_name, glob_name): toc = time.time() progress_bar_thread.terminate() print( - f"Running {package_name} ({runner_name})[{now:%Y/%m/%d %H:%M}]" + f"Running {package_name} ({runner_name})" + f"[{now.isoformat(timespec='seconds')}]" f" took {toc - tic:0.1f} s" ) @@ -80,7 +81,8 @@ def bar(total, package_name, runner_name, glob_name): def summary(package_name, runner_name): now = datetime.datetime.now() print( - f"Running {package_name} ({runner_name})[{now:%Y/%m/%d %H:%M}]... ", + f"Running {package_name} ({runner_name})" + f"[{now.isoformat(timespec='seconds')}]... ", end="", ) tic = time.time()