Skip to content

Commit

Permalink
changes time format to iso format
Browse files Browse the repository at this point in the history
  • Loading branch information
kzqureshi committed Dec 15, 2024
1 parent 91b2dd1 commit 6cbfb3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ubermagutil/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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()
Expand Down

0 comments on commit 6cbfb3d

Please sign in to comment.