2006-01-10 19:13:37 +03:00
|
|
|
import datetime
|
|
|
|
import time
|
|
|
|
import psycopg2
|
|
|
|
|
|
|
|
conn = psycopg2.connect("dbname=test")
|
|
|
|
curs = conn.cursor()
|
|
|
|
curs.execute("set timezone = 'Asia/Calcutta'")
|
|
|
|
curs.execute("SELECT now()")
|
2017-12-04 05:47:19 +03:00
|
|
|
print(curs.fetchone()[0])
|