Created
January 31, 2011 23:47
-
-
Save saghul/805087 to your computer and use it in GitHub Desktop.
Example of timestamp generation using standard datetime module
This file contains 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
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