1. /*
  2. * @(#)DateFormatZoneData.java 1.12 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. /*
  8. * @(#)DateFormatZoneData.java 1.12 01/11/29
  9. *
  10. * (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
  11. * (C) Copyright IBM Corp. 1996 - 1998 - All Rights Reserved
  12. *
  13. * Portions copyright (c) 1996-1998 Sun Microsystems, Inc.
  14. * All Rights Reserved.
  15. *
  16. * The original version of this source code and documentation
  17. * is copyrighted and owned by Taligent, Inc., a wholly-owned
  18. * subsidiary of IBM. These materials are provided under terms
  19. * of a License Agreement between Taligent and Sun. This technology
  20. * is protected by multiple US and International patents.
  21. *
  22. * This notice and attribution to Taligent may not be removed.
  23. * Taligent is a registered trademark of Taligent, Inc.
  24. *
  25. * Permission to use, copy, modify, and distribute this software
  26. * and its documentation for NON-COMMERCIAL purposes and without
  27. * fee is hereby granted provided that this copyright notice
  28. * appears in all copies. Please refer to the file "copyright.html"
  29. * for further important copyright and licensing information.
  30. *
  31. * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  32. * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  33. * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  34. * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  35. * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  36. * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  37. *
  38. */
  39. package java.text.resources;
  40. import java.util.ListResourceBundle;
  41. /**
  42. * Supplement package private date-time formatting zone data for DateFormat.
  43. * DateFormatData used in DateFormat will be initialized by loading the data
  44. * from LocaleElements and DateFormatZoneData resources. The zone data are
  45. * represented with the following form:
  46. * {ID, long zone string, short zone string, long daylight string,
  47. * short daylight string, representative city of zone}, where ID is
  48. * NOT localized, but is used to look up the localized timezone data
  49. * internally. Localizers can localize any zone strings except
  50. * for the ID of the timezone.
  51. * @see ListResourceBundle
  52. * @see Format
  53. * @see DateFormatData
  54. * @see LocaleElements
  55. * @see SimpleDateFormat
  56. * @see TimeZone
  57. * @version 1.12 11/29/01
  58. * @author Chen-Lieh Huang
  59. */
  60. // US DateFormatZoneData
  61. //
  62. public final class DateFormatZoneData extends ListResourceBundle
  63. {
  64. /**
  65. * Overrides ListResourceBundle
  66. */
  67. public Object[][] getContents() {
  68. return new Object[][] {
  69. {"zoneStrings",
  70. new String[][] {
  71. {"PST", "Pacific Standard Time", "PST",
  72. "Pacific Daylight Time", "PDT", "San Francisco"},
  73. {"MST", "Mountain Standard Time", "MST",
  74. "Mountain Daylight Time", "MDT", "Denver"},
  75. {"PNT", "Mountain Standard Time", "MST",
  76. "Mountain Standard Time", "MST", "Phoenix"},
  77. {"CST", "Central Standard Time", "CST",
  78. "Central Daylight Time", "CDT", "Chicago"},
  79. {"EST", "Eastern Standard Time", "EST",
  80. "Eastern Daylight Time", "EDT", "New York"},
  81. // IET is the ID for Indiana Eastern Standard Time timezone.
  82. {"IET", "Eastern Standard Time", "EST",
  83. "Eastern Standard Time", "EST", "Indianapolis"},
  84. // PRT is the ID for Puerto Rico and US Virgin Islands Time timezone.
  85. {"PRT", "Atlantic Standard Time", "AST",
  86. "Atlantic Daylight Time", "ADT", "Halifax"},
  87. {"HST", "Hawaii Standard Time", "HST",
  88. "Hawaii Daylight Time", "HDT", "Honolulu"},
  89. {"AST", "Alaska Standard Time", "AST",
  90. "Alaska Daylight Time", "ADT", "Anchorage"}
  91. }
  92. },
  93. {"localPatternChars", "GyMdkHmsSEDFwWahKz"},
  94. };
  95. }
  96. }