datetime datetime now set timezone code example
Example: datetime python timezone
import datetime
import pytz
my_date = datetime.datetime.now(pytz.timezone('US/Pacific'))
import datetime
import pytz
my_date = datetime.datetime.now(pytz.timezone('US/Pacific'))