creating a datetime.datetime from an XML xs:dateTime

creating a datetime.datetime from an XML xs:dateTime

Post by Jack.Ch » Tue, 30 Dec 2008 13:26:21


I think a simple regular expression is a relatively easy solution.
 
 
 

creating a datetime.datetime from an XML xs:dateTime

Post by M.-A. Lemb » Wed, 07 Jan 2009 22:31:52


Or use mxDateTime and let the parser do all the heavy lifting
for you:

<mx.DateTime.DateTime object for '2000-01-12 12:13:14.00' at 2b5c19c03500>
<mx.DateTime.DateTime object for '2000-01-01 00:00:00.00' at 2b5c18fa12f0>
<mx.DateTime.DateTime object for '2000-01-12 00:00:00.00' at 2b5c19c03500>

http://www.yqcomputer.com/

--
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source (#1, Jan 06 2009)
________________________________________________________________________

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.yqcomputer.com/