Skip to content

Instantly share code, notes, and snippets.

@aeturrell
Created August 25, 2023 14:06
Show Gist options
  • Select an option

  • Save aeturrell/57274f0af406975a9a58cf78b0e2a143 to your computer and use it in GitHub Desktop.

Select an option

Save aeturrell/57274f0af406975a9a58cf78b0e2a143 to your computer and use it in GitHub Desktop.
Timestamp output files
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