Difference between revisions of "Datetime"
Jump to navigation
Jump to search
PeterHarding (talk | contribs) (New page: =Python datetime Module Usage= <pre> from datetime import datetime # ts = datetime.strptime('10:13:15 2006-03-07', '%H:%M:%S %Y-%m-%d') ts = datetime.now().strftime('%Y%m%d%H%M%S'...) |
(No difference)
|
Revision as of 10:51, 5 March 2008
Python datetime Module Usage
from datetime import datetime # ts = datetime.strptime('10:13:15 2006-03-07', '%H:%M:%S %Y-%m-%d') ts = datetime.now().strftime('%Y%m%d%H%M%S')