How to create datetime object from DbiDate (win32.odbc)?

Frank Millman frank at chagford.com
Fri Mar 18 09:10:54 EST 2005


Robert Brewer wrote:
> Frank Millman wrote:
> >
> > First prize would be to have a datetime constructor that takes a
> > DbiDate object as input, in the same way that mx does, but this
does
> > not seem to exist.
>
> Try:
>
> datetime.datetime.utcfromtimestamp(int(value))
> 
Thanks, Robert, this is exactly what I am looking for.

Frank




More information about the Python-list mailing list