python how to date.today.astimezone code example Example: python set timezone of datetime.now my_date = datetime.datetime.now(pytz.timezone('US/Pacific'))