java - Why doesn't TimeZone.getTimeZone() throw an exception -
Why is not an invalid time zone id given to the method? Instead, "GMT Zone returns if given IDs can not be understood". What is the logic behind this decision?
I'm not sure of the argument, but they have provided you a You repeat through all supported time zone IDs To getAvailableIDs can use the method. You can choose a supported ID to get time zone. If the time zone does not represent one of the ID you want, a custom time zone ID can be specified in a timezone getAvailableIDs ( ) With the method to allow you to ensure that your time zone is vaild, they mention it in Javadok:
Comments
Post a Comment