[python-win32] Re ading date from PYTime

Tim Golden mail at timgolden.me.uk
Tue May 19 14:07:53 CEST 2009


SantoshMohan wrote:
> 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?

http://timgolden.me.uk/python/win32_how_do_i/use-a-pytime-value.html

TJG


More information about the python-win32 mailing list