Skip to content

Commit

Permalink
Periods look cleaner than hyphens for iso8601
Browse files Browse the repository at this point in the history
Fixes: #32
  • Loading branch information
asmacdo committed May 28, 2024
1 parent fdac731 commit 695fe46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duct.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def format_output_prefix(output_prefix_template: str) -> str:
f_kwargs = {
# 'pure' iso 8601 does not make good filenames
"datetime": datenow.isoformat(),
"datetime_filesafe": datenow.strftime("%Y-%m-%dT%H-%M-%S"),
"datetime_filesafe": datenow.strftime("%Y.%m.%dT%H.%M.%S"),
"pid": os.getpid(),
}
return output_prefix_template.format(**f_kwargs)
Expand Down

0 comments on commit 695fe46

Please sign in to comment.