Commit 389b26a4 authored by Markus Shepherd's avatar Markus Shepherd 🙈
Browse files

Merge branch 'user-logs' into 'master'

Better date handling in user logs path

Closes #75

See merge request !51
parents 7a1c05a0 0ccb5fe7
......@@ -162,8 +162,18 @@ def main():
)
)
else:
curr = now()
out_path = args.out_path.format(
number=i, time=now().strftime("%Y-%m-%dT%H-%M-%S")
number=i,
datetime=curr.strftime("%Y-%m-%dT%H-%M-%S"),
date=curr.strftime("%Y-%m-%d"),
time=curr.strftime("%H-%M-%S"),
year=curr.year,
month=curr.month,
day=curr.day,
hour=curr.hour,
minute=curr.minute,
second=curr.second,
)
LOGGER.info("writing results to <%s>", out_path)
with open(out_path, "w", newline="") as out_file:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment