Skip to content

Instantly share code, notes, and snippets.

@saghul
Created January 31, 2011 23:47
Show Gist options
  • Save saghul/805087 to your computer and use it in GitHub Desktop.
Save saghul/805087 to your computer and use it in GitHub Desktop.
Example of timestamp generation using standard datetime module
In [2]: from dateutil.parser import parse
In [3]: from datetime import datetime
In [4]: now = datetime.now()
In [5]: timestamp = now.isoformat()
In [6]: print timestamp
------> print(timestamp)
2011-02-01T00:44:33.494967
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment