Skip to content

Instantly share code, notes, and snippets.

@samuell
Created July 4, 2014 13:42
Show Gist options
  • Select an option

  • Save samuell/7d1fb5583b900bccdfa8 to your computer and use it in GitHub Desktop.

Select an option

Save samuell/7d1fb5583b900bccdfa8 to your computer and use it in GitHub Desktop.
How to output a simple formatted date / time stamp in python
import time
# Will output something like:
# 20140704 15:40:51
time.strftime('%Y%m%d %H:%M:%S')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment