How to convert a time object from MS Access database to string
Ng Peng Hwee
NgPH at sg.fujitsu.com
Thu Sep 6 23:43:36 EDT 2001
Hi there,
How I can convert a time object read from the MS Access
Database to a string.
I checked the PyTime Object and used the example as follows:
rdate = time.localtime(int(rec[3]))
but got the following error:
TypeError: object can't be converted to int
Thanks for the help
- ijo -
Yesterday is but today's memory; tomorrow is today's dream. -Kahlil Gibran
----------------------------------------------------------
Ng Peng Hwee
Global Technical Support
FUJITSU ASIA PTE LTD
20 Science Park Road, #03-01, TeleTech Park,
Singapore Science Park II
Singapore 117674
Tel: +65-777-6877 Fax: +65 771-5885
DID: +65-771-5882 COINS: 7971-2882
Mobile: +65-9784-7973
Email: ngph at sg.fujitsu.com
URL: http://www.fapl.fujitsu.com.sg
----------------------------------------------------------
More information about the Python-list
mailing list