Searched refs:daylight (Results 1 - 10 of 10) sorted by relevance

/openjdk10/jdk/src/java.base/share/classes/java/util/spi/
H A DTimeZoneNameProvider.java60 * If <code>daylight</code> is true, the method should return a name
61 * appropriate for daylight saving time even if the specified time zone
62 * has not observed daylight saving time in the past.
65 * @param daylight if true, return the daylight saving name.
79 public abstract String getDisplayName(String ID, boolean daylight, int style, Locale locale); argument
84 * time zone names are neutral from standard time and daylight saving
86 * America/Los_Angeles}, while its short standard time and daylight saving
/openjdk10/jdk/test/java/util/TimeZone/
H A DCLDRDisplayNamesTest.java85 boolean daylight = (i == 3 || i == 4);
86 String name = tz.getDisplayName(daylight, style, locale);
88 System.err.printf("error: got '%s' expected '%s' (style=%d, daylight=%s, locale=%s)%n",
89 name, data[i], style, daylight, locale);
H A DTimeZoneTest.java73 * from MST with daylight savings.
170 boolean daylight; field in class:TimeZoneTest.ZoneDescriptor
175 this.daylight = zone.useDaylightTime();
178 ZoneDescriptor(String id, int offset, boolean daylight) { argument
181 this.daylight = daylight;
192 daylight == that.daylight;
197 return id.hashCode() ^ offset | (daylight ? 1 : 0);
208 (daylight
[all...]
/openjdk10/jdk/src/java.base/share/classes/sun/util/locale/provider/
H A DTimeZoneNameProviderImpl.java80 * If <code>daylight</code> is true, the method should return a name
81 * appropriate for daylight saving time even if the specified time zone
82 * has not observed daylight saving time in the past.
85 * @param daylight if true, return the daylight saving name.
100 public String getDisplayName(String id, boolean daylight, int style, Locale locale) { argument
104 int index = daylight ? 3 : 1;
139 if (index == 3 || index == 4) { // daylight
H A DTimeZoneNameUtility.java138 * Retrieves a standard or daylight-saving time name for the given time zone ID.
141 * @param daylight true for a daylight saving time name, or false for a standard time name
146 public static String retrieveDisplayName(String id, boolean daylight, int style, Locale locale) { argument
149 return names[(daylight ? 4 : 2) - style];
H A DSPILocaleProviderAdapter.java603 public String getDisplayName(String ID, boolean daylight, int style, Locale locale) { argument
606 return tznp.getDisplayName(ID, daylight, style, locale);
/openjdk10/jdk/src/java.base/share/classes/java/util/
H A DTimeZone.java52 * <code>TimeZone</code> represents a time zone offset, and also figures out daylight
97 * Basic Latin block of the Unicode standard. No daylight saving time
168 * daylight savings. This is the offset to add to UTC to get local time.
195 * date, the offset value is adjusted with the amount of daylight
217 * Gets the raw GMT offset and the amount of daylight saving of this
220 * 00:00:00.000 GMT) at which the time zone offset and daylight
223 * (offset[0]) and daylight saving amount (offset[1]) are stored,
226 * @return the total amount of the raw GMT offset and daylight
262 * affected by daylight saving time, it is called <I>raw
343 * specified {@code daylight} i
364 getDisplayName(boolean daylight, int style) argument
397 getDisplayName(boolean daylight, int style, Locale locale) argument
[all...]
/openjdk10/jdk/test/java/util/Locale/
H A DLocaleProviders.sh90 public String getDisplayName(String ID, boolean daylight, int style, Locale locale) {
106 public String getDisplayName(String ID, boolean daylight, int style, Locale locale) {
107 if (!daylight && style==TimeZone.LONG) {
/openjdk10/jdk/src/java.base/macosx/classes/sun/util/locale/provider/
H A DHostLocaleProviderAdapterImpl.java664 public String getDisplayName(String ID, boolean daylight, int style, Locale locale) {
665 return getTimeZoneDisplayString(locale.toLanguageTag(), style * 2 + (daylight ? 1 : 0), ID);
/openjdk10/jdk/src/java.base/share/classes/java/text/
H A DSimpleDateFormat.java1288 boolean daylight = (calendar.get(Calendar.DST_OFFSET) != 0);
1290 buffer.append(tz.getDisplayName(daylight, tzstyle, formatData.locale));
1681 // and long and short daylight [3 & 4].
1707 boolean useSameName = false; // true if standard and daylight time use the same abbreviation.
1722 // Check if the standard name (abbr) and the daylight name are the same.
1759 // (abbreviation) for both standard and daylight time,

Completed in 180 milliseconds