[SciPy-user] Convert a date string to a date object

Bill Dandreta wjdandreta@att....
Fri Aug 17 09:50:06 CDT 2007


date=dt.date.fromtimestamp(time.mktime(time.strptime('2007-08-17',
"%Y-%m-%d")))

Is very very slow!

Is this the recommended Python way to convert a date string to a date
object?

What is the fastest way to do this conversion?

-- 
Bill

wjdandreta@att.net

Gentoo Linux X86_64 2.6.20-gentoo-r8

Reclaim Your Inbox with http://www.mozilla.org/products/thunderbird/

All things cometh to he who waiteth as long as he who waiteth worketh like hell while he waiteth.




More information about the SciPy-user mailing list