New Time format

Mark McEahern marklists at mceahern.com
Thu Jan 24 14:50:16 EST 2002


Dale Strickland-Clark wrote:
> Pretty please can we have a new format method in the time module?
> 
> There is an ISO standard date format, the order of which makes sense
> in most regions: year-month-day hour:minutes:seconds

Have you checked out the egenix mx.DateTime stuff?

  http://www.lemburg.com/files/python/eGenix-mx-Extensions.html

$ python
Python 2.2 (#1, Dec 31 2001, 15:21:18)
[GCC 2.95.3-5 (cygwin special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mx.DateTime
>>> t = mx.DateTime.now()
>>> print t
2002-01-24 11:46:55.52

That seems like what you're asking for, eh?

// mark




More information about the Python-list mailing list