Java Cookbook
display name
Problem:
You want to get a localized display name for a time zone.
Solution:
You can get a display name for a TimeZone in Java very easily by specifying a locale in the getDisplayName method.
To get a display name for Canada/Mountain in Japanese:
If you are testing any of these recipes in Eclipse and the characters are not displaying correctly in your console visit http://i18ncookbook.com/eclipse_settings.
This site is ad supported. I hope you find something among our sponsors worth clicking. ;)
i18n search
Custom Search