storing a string data in access
alex23
wuwei23 at gmail.com
Tue Nov 4 04:24:36 EST 2008
On Nov 4, 3:53 am, "Tim Arnold" <tim.arn... at sas.com> wrote:
> "alex23" <wuwe... at gmail.com> wrote:
> > t = "string representing a datum"
> > access.Fields("Time").value = t
>
> maybe OP means t = "string representing a date", but I'm just guessing.
Oops, that totally didn't occur to me. You'd think the field's key
would've been a giveaway :)
ted: take a look at the time module, it's part of the standard
library.
import time
access.Fields("Time").value = time.strptime('10:00AM', '%I:%M%p')
http://www.python.org/doc/2.5.2/lib/module-time.html
More information about the Python-list
mailing list