mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 22:40:25 +08:00
3824a48600
Fix for PR libgcj/1411: * Makefile.am: Removed java/util/natTimeZone.cc. * Makefile.in: Rebuilt. * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added missing localized timezone names. * java/lang/System.java (getDefaultTimeZoneId): New private method. * java/lang/natSystem.cc (getSystemTimeZone): New private method. (init_properties): Set user.timezone property. * java/text/DateFormatSymbols.java (zoneStringsDefault): Added default timezone names; removed non-standard ones. Use standard ID names per JCL. * java/util/Date.java (toGMTString): Removed zoneGMT variable. (UTC): Ditto. * java/util/TimeZone.java: Add standard ID names per JCL; removed non-standard ones. (getDefaultTimeZoneId): Removed. (zoneGMT): Removed. (getDefaultTimeZoneId): Removed. * java/util/natTimeZone.cc: Removed. From-SVN: r38816
82 lines
2.8 KiB
Java
82 lines
2.8 KiB
Java
// US English locale data for java.text.
|
|
|
|
/* Copyright (C) 1999 Free Software Foundation
|
|
|
|
This file is part of libgcj.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
details. */
|
|
|
|
package gnu.gcj.text;
|
|
|
|
import java.util.ListResourceBundle;
|
|
|
|
/**
|
|
* @author Tom Tromey <tromey@cygnus.com>
|
|
* @date March 4, 1999
|
|
*/
|
|
|
|
public final class LocaleData_en_US extends ListResourceBundle
|
|
{
|
|
// These are for DateFormatSymbols.
|
|
static String[][] zoneStringsDefault = {
|
|
{ "GMT", "Greenwich Mean Time", "GMT",
|
|
/**/ "Greenwich Mean Time", "GMT", "GMT" },
|
|
{ "PST", "Pacific Standard Time", "PST",
|
|
/**/ "Pacific Daylight Time", "PDT", "San Francisco" },
|
|
{ "MST", "Mountain Standard Time", "MST",
|
|
/**/ "Mountain Daylight Time", "MDT", "Denver" },
|
|
{ "PNT", "Mountain Standard Time", "MST",
|
|
/**/ "Mountain Standard Time", "MST", "Phoenix" },
|
|
{ "CST", "Central Standard Time", "CST",
|
|
/**/ "Central Daylight Time", "CDT", "Chicago" },
|
|
{ "EST", "Eastern Standard Time", "EST",
|
|
/**/ "Eastern Daylight Time", "EDT", "Boston" },
|
|
{ "IET", "Eastern Standard Time", "EST",
|
|
/**/ "Eastern Standard Time", "EST", "Indianapolis" },
|
|
{ "PRT", "Atlantic Standard Time", "AST",
|
|
/**/ "Atlantic Daylight Time", "ADT", "Halifax" },
|
|
{ "CNT", "Newfoundland Standard Time", "NST",
|
|
/**/ "Newfoundland Daylight Time", "NDT", "St. Johns" },
|
|
{ "ECT", "Central European Standard Time", "CET",
|
|
/**/ "Central European Daylight Time", "CEST", "Paris" },
|
|
{ "CTT", "China Standard Time", "CST",
|
|
/**/ "China Standard Time", "CST", "Shanghai" },
|
|
{ "JST", "Japan Standard Time", "JST",
|
|
/**/ "Japan Standard Time", "JST", "Tokyo" },
|
|
{ "HST", "Hawaii Standard Time", "HST",
|
|
/**/ "Hawaii Standard Time", "HST", "Honolulu" },
|
|
{ "AST", "Alaska Standard Time", "AKST",
|
|
/**/ "Alaska Daylight Time", "AKDT", "Anchorage" }
|
|
};
|
|
|
|
private static final Object[][] contents =
|
|
{
|
|
// These are for DecimalFormatSymbols.
|
|
{ "currency", "$" },
|
|
{ "intlCurrencySymbol", "$" }, // FIXME?
|
|
|
|
// These are for NumberFormat.
|
|
{ "currencyFormat", "$#,##0.00;($#,##0.00)" },
|
|
|
|
// These are for DateFormatSymbols.
|
|
{ "zoneStrings", zoneStringsDefault },
|
|
|
|
// These are for DateFormat.
|
|
{ "shortDateFormat", "M/d/yy" }, // Java's Y2K bug.
|
|
{ "mediumDateFormat", "d-MMM-yy" },
|
|
{ "longDateFormat", "MMMM d, yyyy" },
|
|
{ "fullDateFormat", "EEEE MMMM d, yyyy G" },
|
|
{ "shortTimeFormat", "h:mm a" },
|
|
{ "mediumTimeFormat", "h:mm:ss a" },
|
|
{ "longTimeFormat", "h:mm:ss a z" },
|
|
{ "fullTimeFormat", "h:mm:ss;S 'o''clock' a z" }
|
|
};
|
|
|
|
protected Object[][] getContents ()
|
|
{
|
|
return contents;
|
|
}
|
|
}
|