Python - DbiDate
Revision as of 13:36, 28 May 2008 by PeterHarding (talk | contribs) (New page: =References= * =Notes= Accessing a SqlServer dataabse via the ActiveState Python ODBC implementation returns dates as a DbiDate object. To convert them into a datetime formate where t...)
References
Notes
Accessing a SqlServer dataabse via the ActiveState Python ODBC implementation returns dates as a DbiDate object.
To convert them into a datetime formate where they are more easily manipulated do the following:
dt = datetime.datetime.fromtimestamp(int(dbidate))