[python-win32] Re ading date from PYTime

SantoshMohan santosh.mce at gmail.com
Tue May 19 13:47:14 CEST 2009


Hi,

I am writing a script to read date from xls file.

Output is like this:

>>>emptylist
[((u'Name', u'DOB'),), ((u'C R RAMESH', <PyTime:7/13/1961 12:00:00 AM>),),
((u'G SIVA RAMA KRISHNAIAH', <PyTime:7/1/1964 12:00:00 AM>),)]

>>> emptylist[1]
((u'C R RAMESH', <PyTime:7/13/1961 12:00:00 AM>),)

>>> value
((u'C R RAMESH', <PyTime:7/13/1961 12:00:00 AM>),)
>>> value[0][1]
<PyTime:7/13/1961 12:00:00 AM>

How to read the date and Time?
-- 
View this message in context: http://www.nabble.com/Reading-date-from-PYTime-tp23614659p23614659.html
Sent from the Python - python-win32 mailing list archive at Nabble.com.



More information about the python-win32 mailing list