Home
last modified time | relevance | path

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

123456

/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/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/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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DSerializableTestUtility.java223 private static final int HOUR = 60*60*1000; field in SerializableTestUtility
225 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
226 … new DateTimeRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME),
229 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
230 … new DateTimeRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME),
233 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
234 … new DateTimeRule(Calendar.APRIL, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME),
237 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
238 new DateTimeRule(Calendar.JANUARY, 6, 2*HOUR, DateTimeRule.WALL_TIME),
241 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DSerializableTestUtility.java226 private static final int HOUR = 60*60*1000; field in SerializableTestUtility
228 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
229 … new DateTimeRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME),
232 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
233 … new DateTimeRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME),
236 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
237 … new DateTimeRule(Calendar.APRIL, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME),
240 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
241 new DateTimeRule(Calendar.JANUARY, 6, 2*HOUR, DateTimeRule.WALL_TIME),
244 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DDayPeriodsCheck.java14 private static final int HOUR = 60 * 60 * 1000; field in DayPeriodsCheck
83 for (int i = 0; i < 24 * HOUR; i += HOUR) { in main()
95 for (int i = 0; i < 24 * HOUR; i += HOUR) { in main()
102 … System.out.print(locale + "\t" + i / HOUR + "..\t" + dayPeriodOld + " → " + dayPeriod); in main()
110 …System.out.print(locale + "\t" + i / HOUR + "..\t" + dayPeriod + "\t\t" + sampleOld + "\t→\t" + sa… in main()
136 DayPeriod lastDayPeriod = dayPeriods.get(start * HOUR); in main()
139 DayPeriod dayPeriod = dayPeriods.get(i * HOUR); in main()
DDayPeriodConverter.java243 allData.put(ulocale, 12 * DayPeriodInfo.HOUR, DayPeriodInfo.DayPeriod.noon); in generateFormat()
256 if (time == 12 * DayPeriodInfo.HOUR) { in generateFormat()
258 … } else if (lastTime < 12 * DayPeriodInfo.HOUR && time > 12 * DayPeriodInfo.HOUR) { in generateFormat()
260 allData.put(ulocale, 12 * DayPeriodInfo.HOUR + 1, lastPeriod); in generateFormat()
277 int end = i + 1 == list.size() ? 24 * DayPeriodInfo.HOUR : list.get(i + 1).getKey(); in generateFormat()
282 start /= DayPeriodInfo.HOUR; in generateFormat()
283 end /= DayPeriodInfo.HOUR; in generateFormat()
DLenientDateParser.java54 private static final int HOUR = 60 * MINUTE; field in LenientDateParser
85 …private static final EnumSet<Type> timeTypes = EnumSet.of(Type.HOUR, Type.MINUTE, Type.SECOND, Typ…
87 …private static final EnumSet<Type> integerTimeTypes = EnumSet.of(Type.HOUR, Type.MINUTE, Type.SECO…
334 case HOUR: in parse()
335 calendar.set(Calendar.HOUR, value); in parse()
406 firstType = hasDate ? Type.YEAR : Type.HOUR; in setFirstType()
423 firstType = Type.HOUR; in setFirstType()
453 … ERA, YEAR, MONTH, WEEKDAY, DAY, HOUR, MINUTE, SECOND, AMPM, TIMEZONE, INTEGER, SEPARATOR, UNKNOWN; enumConstant
484 return Type.HOUR; in getType()
617 allowsAt = value == 0 ? EnumSet.of(Type.HOUR, Type.MINUTE, Type.SECOND) in IntegerToken()
[all …]
DZoneInflections.java33 static private final long HOUR = 60 * MINUTE; field in ZoneInflections
35 static private final double DHOUR = HOUR;
37 static private final long DAY = 24 * HOUR;
/external/libtextclassifier/native/annotator/datetime/
Dutils.cc43 modified_parse.HasFieldType(DatetimeComponent::ComponentType::HOUR) && in FillInterpretations()
45 DatetimeComponent::ComponentType::HOUR) && in FillInterpretations()
49 modified_parse.GetFieldValue(DatetimeComponent::ComponentType::HOUR, in FillInterpretations()
/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/libtextclassifier/native/utils/calendar/
Dcalendar-common.h77 if (!(component.component_type == DatetimeComponent::ComponentType::HOUR || in HasOnlyTimeComponents()
153 if (parse_data.HasAbsoluteValue(DatetimeComponent::ComponentType::HOUR)) { in InterpretParseData()
155 parse_data.GetFieldValue(DatetimeComponent::ComponentType::HOUR, &hour); in InterpretParseData()
313 case DatetimeComponent::ComponentType::HOUR: in AdjustByRelation()
/external/autotest/client/site_tests/power_ThermalLoad/
Dpower_ThermalLoad.py20 HOUR = 60 * 60 variable in power_ThermalLoad
22 def run_once(self, test_url=FISHTANK_URL, duration=2.5*HOUR, numFish=3000):
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateIntervalFormat.java850 } else if ( fromCalendar.get(Calendar.HOUR) != in getPatterns()
851 toCalendar.get(Calendar.HOUR) ) { in getPatterns()
852 field = Calendar.HOUR; in getPatterns()
949 } else if ( fromCalendar.get(Calendar.HOUR) != in formatImpl()
950 toCalendar.get(Calendar.HOUR) ) { in formatImpl()
951 field = Calendar.HOUR; in formatImpl()
964 …boolean fromToOnSameDay = (field==Calendar.AM_PM || field==Calendar.HOUR || field==Calendar.MINUTE… in formatImpl()
1493 … concatSingleDate2TimeInterval(fDateTimeFormat, datePattern, Calendar.HOUR, intervalPatterns); in initializeIntervalPattern()
1810 … genIntervalPattern(Calendar.HOUR, skeleton, bestSkeleton, differenceInfo, intervalPatterns); in genSeparateDateTimePtn()
1864 Calendar.HOUR); in genIntervalPattern()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDateIntervalFormat.java833 } else if ( fromCalendar.get(Calendar.HOUR) != in getPatterns()
834 toCalendar.get(Calendar.HOUR) ) { in getPatterns()
835 field = Calendar.HOUR; in getPatterns()
930 } else if ( fromCalendar.get(Calendar.HOUR) != in formatImpl()
931 toCalendar.get(Calendar.HOUR) ) { in formatImpl()
932 field = Calendar.HOUR; in formatImpl()
945 …boolean fromToOnSameDay = (field==Calendar.AM_PM || field==Calendar.HOUR || field==Calendar.MINUTE… in formatImpl()
1470 … concatSingleDate2TimeInterval(fDateTimeFormat, datePattern, Calendar.HOUR, intervalPatterns); in initializeIntervalPattern()
1787 … genIntervalPattern(Calendar.HOUR, skeleton, bestSkeleton, differenceInfo, intervalPatterns); in genSeparateDateTimePtn()
1841 Calendar.HOUR); in genIntervalPattern()

123456