fuseau horaire Python DateTime
import datetime
import pytz
my_date = datetime.datetime.now(pytz.timezone('US/Pacific'))
Panicky Pigeon
import datetime
import pytz
my_date = datetime.datetime.now(pytz.timezone('US/Pacific'))
>>> import datetime
>>> t = datetime.datetime.now()
>>> t - datetime.timedelta(hours=1, minutes=10)
datetime.datetime(2012, 12, 26, 17, 18, 52, 167840)