convert datetime.now to timezone in python code example
Example 1: python set timezone of datetime.now
my_date = datetime.datetime.now(pytz.timezone('US/Pacific'))
Example 2: python set timezone of datetime
datetime_with_timezone = datetime.datetime(2019, 2, 3, 6, 30, 15, 0, pytz.UTC)