The java.util.TimeZone class in the API specifically lists America/Los_Angeles as the Java ID to be used if a U.S. state falls within the Pacific Timezone.

You can get a list of all available IDs supported by the TimeZone class by calling the getAvailableIDs() method which returns an array of String objects.

But the list has too many America IDs that you cannot know which one is supported by the other timezones. Look no more. Here are the following Java IDs for the different timezones in the U.S.

Eastern Time EST America/New_York
Central Time CST America/Chicago
Mountain Time MST America/Denver
Pacific Time PST America/Los_Angeles
Alaska Time AST America/Anchorage
Hawaii-Aleutian Time HST America/Adak

Related Posts Plugin for WordPress, Blogger...