home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / DateFormatZoneData_en.java < prev    next >
Text File  |  1997-05-20  |  4KB  |  96 lines

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