📜  casa grande time zone (1)

📅  最后修改于: 2023-12-03 15:29:56.546000             🧑  作者: Mango

Casa Grande Time Zone

Casa Grande Time Zone is a time zone used in North America. It is also known as Mountain Standard Time.

Time Offset

Casa Grande Time Zone is 7 hours behind Coordinated Universal Time (UTC-7).

Geographic Area

The Casa Grande Time Zone is used in the following areas:

  • Arizona
  • Western New Mexico
  • Western Texas
Daylight Saving Time

Some areas in the Casa Grande Time Zone observe Daylight Saving Time. During Daylight Saving Time, the time is shifted forward by one hour, resulting in UTC-6.

Example

If it is 3:00 PM UTC, then it is 8:00 AM in the Casa Grande Time Zone.

import datetime
import pytz

utc_time = datetime.datetime(2021, 10, 20, 15, 0, 0, tzinfo=pytz.UTC)
casa_grande_time = utc_time.astimezone(pytz.timezone('America/Phoenix'))

print(casa_grande_time.strftime('%Y-%m-%d %H:%M:%S %Z%z'))
# Output: 2021-10-20 08:00:00 MST-0700
Conclusion

In summary, Casa Grande Time Zone is a time zone used in North America that is 7 hours behind Coordinated Universal Time (UTC-7). It is used in Arizona, Western New Mexico, and Western Texas. Some areas in the time zone observe Daylight Saving Time, resulting in UTC-6 during that period.