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

12

/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/
H A D35-1-buildonly.c9 Test that daylight is declared.
18 dummy = daylight;
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/util/
H A DTimeZoneNameProviderICU.java21 public String getDisplayName(String ID, boolean daylight, int style, Locale locale) { argument
40 dispName = daylight ? ldst : lstd;
43 dispName = daylight ? sdst : sstd;
52 // dispName = daylight ?
57 // dispName = daylight ?
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
H A DTimeZone.java23 * <p><code>TimeZone</code> represents a time zone offset, and also computes daylight
57 * daylight savings time.
200 // * a short name derived from the timezone's short standard or daylight
219 // * daylight savings. This is the offset to add *to* UTC to get local time.
270 * date, the offset value is adjusted with the amount of daylight
324 * Gets unmodified offset, NOT modified in case of daylight savings.
386 * This method returns the long name, not including daylight savings.
404 * @param daylight if true, return the daylight savings name.
412 public final String getDisplayName(boolean daylight, in argument
433 getDisplayName(boolean daylight, int style, Locale locale) argument
454 getDisplayName(boolean daylight, int style, ULocale locale) argument
[all...]
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
H A DTimeZoneNameTest.java79 * It looks Java 6 requires a TimeZoneNameProvider to return both standard name and daylight name
81 * the other. In ICU, there are zones which do not have daylight names, especially zones which
82 * do not use daylight time. This test case does not check a standard name if its daylight name
85 * Another problem is that ICU always use a standard name for a zone which does not use daylight
86 * saving time even daylight name is requested.
97 private String getIcuDisplayName(String tzid, boolean daylight, int style, Locale loc) { argument
106 icuName = daylight ?
111 icuName = daylight ?
120 private void checkDisplayName(boolean daylight, in argument
[all...]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
H A DTimeZoneICU.java50 //public String getDisplayName(boolean daylight, int style)
54 public String getDisplayName(boolean daylight, int style, Locale locale) { argument
55 return fIcuTz.getDisplayName(daylight, style, locale);
/external/icu/android_icu4j/src/main/java/android/icu/util/
H A DTimeZone.java37 * <p><code>TimeZone</code> represents a time zone offset, and also computes daylight
72 * offset from GMT(=UTC) and does not observe daylight saving
75 * of GMT (with no daylight saving time). In addition,
177 * a short name derived from the timezone's short standard or daylight
240 * daylight savings. This is the offset to add *to* UTC to get local time.
257 * date, the offset value is adjusted with the amount of daylight
333 * Gets unmodified offset, NOT modified in case of daylight savings.
392 * This method returns the long name, not including daylight savings.
409 * @param daylight if true, return the daylight saving
417 getDisplayName(boolean daylight, int style) argument
437 getDisplayName(boolean daylight, int style, Locale locale) argument
457 getDisplayName(boolean daylight, int style, ULocale locale) argument
470 _getDisplayName(int style, boolean daylight, ULocale locale) argument
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DTimeZone.java36 * <p><code>TimeZone</code> represents a time zone offset, and also computes daylight
71 * offset from GMT(=UTC) and does not observe daylight saving
74 * of GMT (with no daylight saving time). In addition,
213 * a short name derived from the timezone's short standard or daylight
289 * daylight savings. This is the offset to add *to* UTC to get local time.
307 * date, the offset value is adjusted with the amount of daylight
387 * Gets unmodified offset, NOT modified in case of daylight savings.
451 * This method returns the long name, not including daylight savings.
469 * @param daylight if true, return the daylight saving
478 getDisplayName(boolean daylight, int style) argument
499 getDisplayName(boolean daylight, int style, Locale locale) argument
520 getDisplayName(boolean daylight, int style, ULocale locale) argument
533 _getDisplayName(int style, boolean daylight, ULocale locale) argument
[all...]
/external/python/cpython2/Lib/
H A D_strptime.py45 timezone -- daylight- and non-daylight-savings timezone representation
78 if time.tzname != self.tzname or time.daylight != self.daylight:
165 # and time.daylight; handle that in strptime.
171 self.daylight = time.daylight
173 if self.daylight:
306 time.daylight != locale_time.daylight)
[all...]
/external/python/cpython3/Lib/
H A D_strptime.py47 timezone -- daylight- and non-daylight-savings timezone representation
80 if time.tzname != self.tzname or time.daylight != self.daylight:
167 # and time.daylight; handle that in strptime.
173 self.daylight = time.daylight
175 if self.daylight:
336 time.daylight != locale_time.daylight)
[all...]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
H A DTimeZoneJDK.java77 //public String getDisplayName(boolean daylight, int style)
81 public String getDisplayName(boolean daylight, int style, Locale locale) { argument
82 return fJdkTz.getDisplayName(daylight, style, locale);
86 public String getDisplayName(boolean daylight, int style, ULocale locale) { argument
87 return fJdkTz.getDisplayName(daylight, style, locale.toLocale());
/external/python/cpython2/Lib/test/
H A Dtest_time.py14 time.daylight
101 # No test for daylight savings since strftime() does not change output
167 self.assertEqual(time.daylight, 0)
177 self.assertEqual(time.daylight, 1)
195 self.assertEqual(time.daylight, 1)
H A Dtest_strptime.py185 frozenset("Tokyo (daylight time)"))
303 if time.tzname[0] != time.tzname[1] or not time.daylight:
310 "time.daylight but timezone value not set to -1")
314 # when time.tzname[0] == time.tzname[1] and time.daylight
320 support.swap_attr(time, 'daylight', 1), \
323 time.daylight = 1
327 "time.daylight set to %s and passing in %s" %
328 (time.tzname, tz_value, time.daylight, tz_name))
/external/toybox/toys/other/
H A Dhwclock.c108 /* The value of tm_isdst is positive if daylight saving time is in effect,
114 tzone.tz_minuteswest = timezone / 60 - 60 * daylight;
118 // Adjust seconds for timezone and daylight saving time
/external/icu/icu4c/source/i18n/unicode/
H A Dtimezone.h52 * <code>TimeZone</code> represents a time zone offset, and also figures out daylight
88 * offset from GMT(=UTC) and does not observe daylight saving
91 * of GMT (with no daylight saving time). In addition,
101 * time zone (without taking daylight savings time into account).</li>
102 * <li>Logic necessary to take daylight savings time into account if daylight savings
103 * time is observed in that time zone (e.g., the days and hours on which daylight
109 * daylight savings time and GMT offset in different ways. Currently we have the following
113 * combination of GMT offset and daylight-savings time rules currently in use in the
153 * The GMT (=UTC) time zone has a raw offset of zero and does not use daylight
[all...]
/external/icu/icu4c/source/i18n/
H A Dtimezone.cpp1185 TimeZone::getDisplayName(UBool daylight, EDisplayType style, UnicodeString& result) const argument
1187 return getDisplayName(daylight,style, Locale::getDefault(), result);
1199 TimeZone::getDisplayName(UBool daylight, EDisplayType style, const Locale& locale, UnicodeString& result) const argument
1228 // appropriate for the requested daylight value.
1229 if ((daylight && timeType == UTZFMT_TIME_TYPE_STANDARD) || (!daylight && timeType == UTZFMT_TIME_TYPE_DAYLIGHT)) {
1230 offset = daylight ? getRawOffset() + getDSTSavings() : getRawOffset();
1243 offset = daylight && useDaylightTime() ? getRawOffset() + getDSTSavings() : getRawOffset();
1260 nameType = daylight ? UTZNM_LONG_DAYLIGHT : UTZNM_LONG_STANDARD;
1264 nameType = daylight
[all...]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
H A DTimeZoneTest.java104 * from MST with daylight savings.
220 boolean daylight; field in class:TimeZoneTest.ZoneDescriptor
225 this.daylight = zone.useDaylightTime();
228 ZoneDescriptor(String id, int offset, boolean daylight) { argument
231 this.daylight = daylight;
242 daylight == that.daylight;
253 (daylight ? "Daylight" : "Standard") + "]";
261 if (i1.daylight
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
H A DTimeZoneTest.java101 * from MST with daylight savings.
217 boolean daylight; field in class:TimeZoneTest.ZoneDescriptor
222 this.daylight = zone.useDaylightTime();
225 ZoneDescriptor(String id, int offset, boolean daylight) { argument
228 this.daylight = daylight;
239 daylight == that.daylight;
250 (daylight ? "Daylight" : "Standard") + "]";
258 if (i1.daylight
[all...]
/external/python/cpython2/Doc/includes/
H A Dtzinfo-examples.py47 if _time.daylight:
/external/python/cpython3/Doc/includes/
H A Dtzinfo-examples.py14 if _time.daylight:
/external/python/cpython3/PC/
H A Dpyconfig.h210 #define daylight _daylight macro
/external/python/cpython3/Lib/test/
H A Dtest_strptime.py184 frozenset("Tokyo (daylight time)"))
332 if time.tzname[0] != time.tzname[1] or not time.daylight:
339 "time.daylight but timezone value not set to -1")
343 # when time.tzname[0] == time.tzname[1] and time.daylight
349 support.swap_attr(time, 'daylight', 1), \
352 time.daylight = 1
356 "time.daylight set to %s and passing in %s" %
357 (time.tzname, tz_value, time.daylight, tz_name))
H A Dtest_time.py56 time.daylight
204 # values. No test for daylight savings since strftime() does
306 self.assertEqual(time.daylight, 0)
316 self.assertEqual(time.daylight, 1)
336 self.assertEqual(time.daylight, 1)
/external/python/cpython2/Lib/email/
H A Dutils.py140 taking daylight savings time into account.
153 # daylight savings time, and whether DST is in effect.
154 if time.daylight and now[-1]:
/external/python/cpython3/Lib/email/
H A Dutils.py148 taking daylight savings time into account.
376 dst = time.daylight and localtm.tm_isdst > 0
/external/python/cpython2/Modules/
H A Dtimemodule.c63 #define daylight _daylight macro
668 /* Reset timezone, altzone, daylight and tzname */
724 PyModule_AddIntConstant(m, "daylight", daylight);
750 PyModule_AddIntConstant(m, "daylight",
758 PyModule_AddIntConstant(m, "daylight",
771 PyModule_AddIntConstant(m, "daylight", _daylight);
831 daylight -- whether local time should reflect DST\n\

Completed in 618 milliseconds

12