Home
last modified time | relevance | path

Searched refs:HOUR (Results 1 – 25 of 110) sorted by relevance

12345

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneOffsetLocalTest.java42 final int HOUR = 60*60*1000; in TestGetOffsetAroundTransition() local
46 {2006, Calendar.APRIL, 2, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
47 {2006, Calendar.APRIL, 2, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition()
48 {2006, Calendar.APRIL, 2, 2, 30, 2*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
49 {2006, Calendar.APRIL, 2, 3, 00, 3*HOUR}, in TestGetOffsetAroundTransition()
50 {2006, Calendar.APRIL, 2, 3, 30, 3*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
51 {2006, Calendar.OCTOBER, 29, 0, 30, 0*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
52 {2006, Calendar.OCTOBER, 29, 1, 00, 1*HOUR}, in TestGetOffsetAroundTransition()
53 {2006, Calendar.OCTOBER, 29, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
54 {2006, Calendar.OCTOBER, 29, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition()
[all …]
DTimeZoneRuleTest.java49 private static final int HOUR = 60 * 60 * 1000; field in TimeZoneRuleTest
56 SimpleTimeZone stz = new SimpleTimeZone(-1*HOUR, "TestSTZ", in TestSimpleRuleBasedTimeZone()
57 Calendar.SEPTEMBER, -30, -Calendar.SATURDAY, 1*HOUR, SimpleTimeZone.WALL_TIME, in TestSimpleRuleBasedTimeZone()
58 Calendar.FEBRUARY, 2, Calendar.SUNDAY, 1*HOUR, SimpleTimeZone.WALL_TIME, in TestSimpleRuleBasedTimeZone()
59 1*HOUR); in TestSimpleRuleBasedTimeZone()
68 -1*HOUR, // Raw offset in TestSimpleRuleBasedTimeZone()
69 1*HOUR); // DST saving amount in TestSimpleRuleBasedTimeZone()
74 1*HOUR, DateTimeRule.WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone()
76 -1*HOUR /* rawOffset */, 1*HOUR /* dstSavings */, dtr, in TestSimpleRuleBasedTimeZone()
80 1*HOUR, DateTimeRule.WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneOffsetLocalTest.java39 final int HOUR = 60*60*1000; in TestGetOffsetAroundTransition() local
43 {2006, Calendar.APRIL, 2, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
44 {2006, Calendar.APRIL, 2, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition()
45 {2006, Calendar.APRIL, 2, 2, 30, 2*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
46 {2006, Calendar.APRIL, 2, 3, 00, 3*HOUR}, in TestGetOffsetAroundTransition()
47 {2006, Calendar.APRIL, 2, 3, 30, 3*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
48 {2006, Calendar.OCTOBER, 29, 0, 30, 0*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
49 {2006, Calendar.OCTOBER, 29, 1, 00, 1*HOUR}, in TestGetOffsetAroundTransition()
50 {2006, Calendar.OCTOBER, 29, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
51 {2006, Calendar.OCTOBER, 29, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition()
[all …]
DTimeZoneRuleTest.java46 private static final int HOUR = 60 * 60 * 1000; field in TimeZoneRuleTest
53 SimpleTimeZone stz = new SimpleTimeZone(-1*HOUR, "TestSTZ", in TestSimpleRuleBasedTimeZone()
54 Calendar.SEPTEMBER, -30, -Calendar.SATURDAY, 1*HOUR, SimpleTimeZone.WALL_TIME, in TestSimpleRuleBasedTimeZone()
55 Calendar.FEBRUARY, 2, Calendar.SUNDAY, 1*HOUR, SimpleTimeZone.WALL_TIME, in TestSimpleRuleBasedTimeZone()
56 1*HOUR); in TestSimpleRuleBasedTimeZone()
65 -1*HOUR, // Raw offset in TestSimpleRuleBasedTimeZone()
66 1*HOUR); // DST saving amount in TestSimpleRuleBasedTimeZone()
71 1*HOUR, DateTimeRule.WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone()
73 -1*HOUR /* rawOffset */, 1*HOUR /* dstSavings */, dtr, in TestSimpleRuleBasedTimeZone()
77 1*HOUR, DateTimeRule.WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtzoffloc.cpp46 const int32_t HOUR = 60*60*1000; in TestGetOffsetAroundTransition() local
50 {2006, UCAL_APRIL, 2, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
51 {2006, UCAL_APRIL, 2, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition()
52 {2006, UCAL_APRIL, 2, 2, 30, 2*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
53 {2006, UCAL_APRIL, 2, 3, 00, 3*HOUR}, in TestGetOffsetAroundTransition()
54 {2006, UCAL_APRIL, 2, 3, 30, 3*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
55 {2006, UCAL_OCTOBER, 29, 0, 30, 0*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
56 {2006, UCAL_OCTOBER, 29, 1, 00, 1*HOUR}, in TestGetOffsetAroundTransition()
57 {2006, UCAL_OCTOBER, 29, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition()
58 {2006, UCAL_OCTOBER, 29, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition()
[all …]
Dtzrulets.cpp34 #define HOUR (60*60*1000) macro
155 SimpleTimeZone stz(-1*HOUR, "TestSTZ", in TestSimpleRuleBasedTimeZone()
156 UCAL_SEPTEMBER, -30, -UCAL_SATURDAY, 1*HOUR, SimpleTimeZone::WALL_TIME, in TestSimpleRuleBasedTimeZone()
157 UCAL_FEBRUARY, 2, UCAL_SUNDAY, 1*HOUR, SimpleTimeZone::WALL_TIME, in TestSimpleRuleBasedTimeZone()
158 1*HOUR, status); in TestSimpleRuleBasedTimeZone()
169 -1*HOUR, // Raw offset in TestSimpleRuleBasedTimeZone()
170 1*HOUR); // DST saving amount in TestSimpleRuleBasedTimeZone()
175 1*HOUR, DateTimeRule::WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone()
177 -1*HOUR /*rawOffset*/, 1*HOUR /*dstSavings*/, dtr, in TestSimpleRuleBasedTimeZone()
184 1*HOUR, DateTimeRule::WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone()
[all …]
/external/python/cpython3/Doc/includes/
Dtzinfo-examples.py4 HOUR = timedelta(hours=1) variable
142 if start + HOUR <= dt < end - HOUR:
144 return HOUR
145 if end - HOUR <= dt < end:
147 return ZERO if dt.fold else HOUR
148 if start <= dt < start + HOUR:
150 return HOUR if dt.fold else ZERO
160 dst_time = std_time + HOUR
161 if end <= dst_time < end + HOUR:
167 if start <= std_time < end - HOUR:
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DSerializableTestUtility.java225 private static final int HOUR = 60*60*1000; field in SerializableTestUtility
227 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
228 … new DateTimeRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME),
231 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
232 … new DateTimeRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME),
235 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
236 … new DateTimeRule(Calendar.APRIL, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME),
239 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
240 new DateTimeRule(Calendar.JANUARY, 6, 2*HOUR, DateTimeRule.WALL_TIME),
243 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DSerializableTestUtility.java222 private static final int HOUR = 60*60*1000; field in SerializableTestUtility
224 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
225 … new DateTimeRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME),
228 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
229 … new DateTimeRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME),
232 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
233 … new DateTimeRule(Calendar.APRIL, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME),
236 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
237 new DateTimeRule(Calendar.JANUARY, 6, 2*HOUR, DateTimeRule.WALL_TIME),
240 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/
DTimeUnitConstants.java31 public static final TimeUnit HOUR = TimeUnit.HOUR; field
DTimeUnit.java49 public static final TimeUnit HOUR = new TimeUnit("hour", 4); field in TimeUnit
72 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DTimeUnitConstants.java29 public static final TimeUnit HOUR = TimeUnit.HOUR; field
DTimeUnit.java47 public static final TimeUnit HOUR = new TimeUnit("hour", 4); field in TimeUnit
70 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DTimeUnit.java40 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; in values()
56 return HOUR; in readResolve()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DTimeUnit.java38 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; in values()
54 return HOUR; in readResolve()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/asctime/
D1-1.c15 #define HOUR 1 macro
45 time_ptr.tm_hour = HOUR; in main()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDateIntervalFormat.java661 } else if ( fromCalendar.get(Calendar.HOUR) != in getPatterns()
662 toCalendar.get(Calendar.HOUR) ) { in getPatterns()
663 field = Calendar.HOUR; in getPatterns()
722 } else if ( fromCalendar.get(Calendar.HOUR) != in format()
723 toCalendar.get(Calendar.HOUR) ) { in format()
724 field = Calendar.HOUR; in format()
737 …boolean fromToOnSameDay = (field==Calendar.AM_PM || field==Calendar.HOUR || field==Calendar.MINUTE… in format()
1252 … concatSingleDate2TimeInterval(fDateTimeFormat, datePattern, Calendar.HOUR, intervalPatterns); in initializeIntervalPattern()
1568 … genIntervalPattern(Calendar.HOUR, skeleton, bestSkeleton, differenceInfo, intervalPatterns); in genSeparateDateTimePtn()
1622 Calendar.HOUR); in genIntervalPattern()
DDateTimePatternGenerator.java186 if (fld.getType() == HOUR) { in consumeShortTimePattern()
1046 public static final int HOUR = 11; field in DateTimePatternGenerator
1087 public static final int MATCH_HOUR_FIELD_LENGTH = 1 << HOUR;
1967 if ( (type == HOUR && (options & MATCH_HOUR_FIELD_LENGTH)==0) || in adjustFieldTypes()
1982 char c = (type != HOUR in adjustFieldTypes()
1988 if (type == HOUR && flags.contains(DTPGflags.SKELETON_USES_CAP_J)) { in adjustFieldTypes()
2240 {'H', HOUR, NUMERIC + 10*DELTA, 1, 2}, // 24 hour
2241 {'k', HOUR, NUMERIC + 11*DELTA, 1, 2},
2242 {'h', HOUR, NUMERIC, 1, 2}, // 12 hour
2243 {'K', HOUR, NUMERIC + DELTA, 1, 2},
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateIntervalFormat.java669 } else if ( fromCalendar.get(Calendar.HOUR) != in getPatterns()
670 toCalendar.get(Calendar.HOUR) ) { in getPatterns()
671 field = Calendar.HOUR; in getPatterns()
731 } else if ( fromCalendar.get(Calendar.HOUR) != in format()
732 toCalendar.get(Calendar.HOUR) ) { in format()
733 field = Calendar.HOUR; in format()
746 …boolean fromToOnSameDay = (field==Calendar.AM_PM || field==Calendar.HOUR || field==Calendar.MINUTE… in format()
1265 … concatSingleDate2TimeInterval(fDateTimeFormat, datePattern, Calendar.HOUR, intervalPatterns); in initializeIntervalPattern()
1581 … genIntervalPattern(Calendar.HOUR, skeleton, bestSkeleton, differenceInfo, intervalPatterns); in genSeparateDateTimePtn()
1635 Calendar.HOUR); in genIntervalPattern()
DDateTimePatternGenerator.java190 if (fld.getType() == HOUR) { in consumeShortTimePattern()
1076 public static final int HOUR = 11; field in DateTimePatternGenerator
1122 public static final int MATCH_HOUR_FIELD_LENGTH = 1 << HOUR;
1993 if ( (type == HOUR && (options & MATCH_HOUR_FIELD_LENGTH)==0) || in adjustFieldTypes()
2008 char c = (type != HOUR in adjustFieldTypes()
2014 if (type == HOUR && flags.contains(DTPGflags.SKELETON_USES_CAP_J)) { in adjustFieldTypes()
2265 {'H', HOUR, NUMERIC + 10*DELTA, 1, 2}, // 24 hour
2266 {'k', HOUR, NUMERIC + 11*DELTA, 1, 2},
2267 {'h', HOUR, NUMERIC, 1, 2}, // 12 hour
2268 {'K', HOUR, NUMERIC + DELTA, 1, 2},
[all …]
/external/python/cpython3/Lib/test/
Ddatetimetester.py280 offset = h * HOUR
297 self.assertEqual('UTC-05:00', timezone(-5 * HOUR).tzname(None))
298 self.assertEqual('UTC+09:30', timezone(9.5 * HOUR).tzname(None))
300 self.assertEqual('XYZ', timezone(-5 * HOUR, 'XYZ').tzname(None))
318 self.assertNotEqual(timezone(ZERO), timezone(HOUR))
319 self.assertEqual(timezone(HOUR), timezone(HOUR))
320 self.assertEqual(timezone(-5 * HOUR), timezone(-5 * HOUR, 'EST'))
2105 self.assertEqual(dt.utcoffset(), 12 * HOUR + 34 * MINUTE)
3228 tza = timezone(HOUR, 'A')
3229 tzb = timezone(HOUR, 'B')
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DMeasureUnitTest.java311 MeasureUnit.HOUR, in TestCompatible53()
349 MeasureUnit.HOUR, in TestCompatible54()
477 MeasureUnit.HOUR, in TestCompatible55()
609 MeasureUnit.HOUR, in TestCompatible56()
750 MeasureUnit.HOUR, in TestCompatible57()
895 MeasureUnit.HOUR, in TestCompatible58()
1036 MeasureUnit.HOUR, in TestCompatible59()
1182 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn()
1185 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn()
1188 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMeasureUnitTest.java308 MeasureUnit.HOUR, in TestCompatible53()
346 MeasureUnit.HOUR, in TestCompatible54()
474 MeasureUnit.HOUR, in TestCompatible55()
606 MeasureUnit.HOUR, in TestCompatible56()
747 MeasureUnit.HOUR, in TestCompatible57()
892 MeasureUnit.HOUR, in TestCompatible58()
1033 MeasureUnit.HOUR, in TestCompatible59()
1179 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn()
1182 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn()
1185 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DCalendarRegressionTest.java94 if (cal.get(Calendar.HOUR) != 5) { in Test4031502()
100 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502()
103 if (cal.get(Calendar.HOUR) != 5) { in Test4031502()
109 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502()
113 cal.get(Calendar.HOUR); in Test4031502()
117 cal2.get(Calendar.HOUR); in Test4031502()
123 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502()
131 ": HOUR = " + cal.get(Calendar.HOUR)); in Test4031502()
274 gc.set(Calendar.HOUR, 0); in Test4059654()
907 cal.add(Calendar.HOUR, amt); in Test4114578()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCalendarRegressionTest.java91 if (cal.get(Calendar.HOUR) != 5) { in Test4031502()
97 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502()
100 if (cal.get(Calendar.HOUR) != 5) { in Test4031502()
106 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502()
110 cal.get(Calendar.HOUR); in Test4031502()
114 cal2.get(Calendar.HOUR); in Test4031502()
120 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502()
128 ": HOUR = " + cal.get(Calendar.HOUR)); in Test4031502()
271 gc.set(Calendar.HOUR, 0); in Test4059654()
904 cal.add(Calendar.HOUR, amt); in Test4114578()
[all …]

12345