ODBC and Access Short time format

N

news.terra.es

Hi all,

I cannot manage an Access short time date format from python ODBC.
How could I do?

Here it is an example of what I do.
[('fLongDate', 'DATE', 19, 19, 0, 0, 1), ('fShortTime', 'DATE', 19, 19, 0,
0, 1)]
print time.strftime("%d-%m-%Y %H:%M",time.localtime(rec[0].value))
31-12-2001 20:30
print time.strftime("%H:%M",time.localtime(rec[1].value))
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
IOError: [Errno 22] Invalid argument

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top