Is there an easy way to create a list of only the time zones in US? I am using this code but it produces every time zone and I only want Pacific, Central, Mountain, and Eastern
public List<TimeZoneInfo> _timeZones = TimeZoneInfo.GetSystemTimeZones().ToList();
The United States is divided into six time zones: Hawaii-Aleutian time, Alaska time, Pacific time, Mountain time, Central time and Eastern time.
Finally, the railway managers agreed to use four time zones for the continental United States: Eastern, Central, Mountain, and Pacific. Local times would no longer be used by the railroads.
There are actually six time zones in the USA. The four main ones are Eastern, Central, Mountain, and Pacific Standard Time.
From east to west they are Atlantic Standard Time (AST), Eastern Standard Time (EST), Central Standard Time (CST), Mountain Standard Time (MST), Pacific Standard Time (PST), Alaskan Standard Time (AKST), Hawaii-Aleutian Standard Time (HST), Samoa standard time (UTC-11) and Chamorro Standard Time (UTC+10).
I created a list of US time zones:
var zones = new List<TimeZoneInfo> {
TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("Mountain Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("US Eastern Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("US Mountain Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("Hawaiian Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("Alaskan Standard Time"),
};
I think this is an updated list of US timezones:
var timezones = new List<TimeZoneInfo> {
TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("Mountain Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("US Eastern Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("US Mountain Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("Hawaiian Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("Alaskan Standard Time"),
TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time (Mexico)"),
TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time (Mexico)"),
TimeZoneInfo.FindSystemTimeZoneById("UTC")
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With