[Tutor] Second attempt convert DateTimeTyep to datetime.datetime
Luke Paireepinart
rabidpoobear at gmail.com
Fri Nov 10 21:02:56 CET 2006
johnf wrote:
> Hi,
>
> I'm using FreeTDS (MS SQL database access lib) and for datetime fields it
> returns a type 'DateTimeType'. I need it in type 'datetime.datetime'. There
> is very little in the form of a tutorial that explains what I need to do.
>
if a datetimetype object has a __str__ or __repr__ method,
you can probably just use datetime.datetime's parsing system to convert
it from a string into a datetime.datetime object.
> Can someone help me with this issue.
>
> John
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
More information about the Tutor
mailing list