diff options
author | Federico Di Gregorio <fog@initd.org> | 2006-01-10 16:13:37 +0000 |
---|---|---|
committer | Federico Di Gregorio <fog@initd.org> | 2006-01-10 16:13:37 +0000 |
commit | 5871596eda7875e3a0cadb4db6fceb4c2995f3c5 (patch) | |
tree | 737b69d669e5b493eaa7b80d2e3eee08b1fd9f23 /sandbox/tzhalf.py | |
parent | 1aed51693866f7e16afdfab1f9c1baefae30a9ef (diff) | |
download | psycopg2-5871596eda7875e3a0cadb4db6fceb4c2995f3c5.tar.gz |
Some more tests in sandbox.
Diffstat (limited to 'sandbox/tzhalf.py')
-rw-r--r-- | sandbox/tzhalf.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sandbox/tzhalf.py b/sandbox/tzhalf.py new file mode 100644 index 0000000..8e38441 --- /dev/null +++ b/sandbox/tzhalf.py @@ -0,0 +1,9 @@ +import datetime +import time +import psycopg2 + +conn = psycopg2.connect("dbname=test") +curs = conn.cursor() +curs.execute("set timezone = 'Asia/Calcutta'") +curs.execute("SELECT now()") +print curs.fetchone()[0] |