mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 09:47:30 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			206 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			206 B
		
	
	
	
		
			Python
		
	
	
	
	
	
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]
 |