[cx-oracle-users] Getting timezone info out of systimestamp
Brought to you by:
atuining
From: <wa...@li...> - 2006-05-09 17:18:29
|
Hello list! Is there a way to get the timezone information out of systimestamp? The following code doesn't seem to work: In [1]: import cx_Oracle In [2]: db = cx_Oracle.connect("...") In [3]: c = db.cursor() In [4]: c.execute("select systimestamp from dual") Out[4]: [<cx_Oracle.TIMESTAMP object at 0xb3aa62a0>] In [5]: d = c.fetchone() In [6]: d[0].tzinfo In [7]: I'm using Python 2.4.2/cx_Oracle 4.1.2 Servus, Walter |