Datetime

From PeformIQ Upgrade
Revision as of 11:51, 5 March 2008 by 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'...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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')