diff options
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] |