Created
August 25, 2023 14:06
-
-
Save aeturrell/57274f0af406975a9a58cf78b0e2a143 to your computer and use it in GitHub Desktop.
Timestamp output files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import datetime | |
| output_fname = f"prefix_{datetime.now().strftime('%Y_%m_%d-%p%I_%M_%S')}.csv" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment