/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneOffsetLocalTest.java | 39 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 …]
|
D | TimeZoneRuleTest.java | 46 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/ |
D | TimeZoneOffsetLocalTest.java | 42 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 …]
|
D | TimeZoneRuleTest.java | 49 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/ |
D | tzoffloc.cpp | 46 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 …]
|
D | tzrulets.cpp | 34 #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/libtextclassifier/native/annotator/datetime/ |
D | regex-parser_test.cc | 123 .Add(DatetimeComponent::ComponentType::HOUR, 22) in TEST_F() 134 .Add(DatetimeComponent::ComponentType::HOUR, 2) in TEST_F() 144 .Add(DatetimeComponent::ComponentType::HOUR, 15) in TEST_F() 155 .Add(DatetimeComponent::ComponentType::HOUR, 8) in TEST_F() 163 .Add(DatetimeComponent::ComponentType::HOUR, 8) in TEST_F() 174 .Add(DatetimeComponent::ComponentType::HOUR, 2) in TEST_F() 183 .Add(DatetimeComponent::ComponentType::HOUR, 2) in TEST_F() 195 .Add(DatetimeComponent::ComponentType::HOUR, 4) in TEST_F() 204 .Add(DatetimeComponent::ComponentType::HOUR, 4) in TEST_F() 215 .Add(DatetimeComponent::ComponentType::HOUR, 11) in TEST_F() [all …]
|
D | grammar-parser_test.cc | 127 .Add(DatetimeComponent::ComponentType::HOUR, 22) in TEST_F() 138 .Add(DatetimeComponent::ComponentType::HOUR, 2) in TEST_F() 148 .Add(DatetimeComponent::ComponentType::HOUR, 15) in TEST_F() 160 .Add(DatetimeComponent::ComponentType::HOUR, 2) in TEST_F() 169 .Add(DatetimeComponent::ComponentType::HOUR, 2) in TEST_F() 181 .Add(DatetimeComponent::ComponentType::HOUR, 4) in TEST_F() 190 .Add(DatetimeComponent::ComponentType::HOUR, 4) in TEST_F() 201 .Add(DatetimeComponent::ComponentType::HOUR, 11) in TEST_F() 207 .Add(DatetimeComponent::ComponentType::HOUR, 11) in TEST_F() 215 .Add(DatetimeComponent::ComponentType::HOUR, 11) in TEST_F() [all …]
|
D | utils.cc | 43 modified_parse.HasFieldType(DatetimeComponent::ComponentType::HOUR) && in FillInterpretations() 45 DatetimeComponent::ComponentType::HOUR) && in FillInterpretations() 49 modified_parse.GetFieldValue(DatetimeComponent::ComponentType::HOUR, in FillInterpretations()
|
/external/python/cpython3/Doc/includes/ |
D | tzinfo_examples.py | 4 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/ |
D | SerializableTestUtility.java | 227 private static final int HOUR = 60*60*1000; field in SerializableTestUtility 229 new AnnualTimeZoneRule("EST", -5*HOUR, 0, 230 … new DateTimeRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 233 new AnnualTimeZoneRule("EST", -5*HOUR, 0, 234 … new DateTimeRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME), 237 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, 238 … new DateTimeRule(Calendar.APRIL, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 241 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, 242 new DateTimeRule(Calendar.JANUARY, 6, 2*HOUR, DateTimeRule.WALL_TIME), 245 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
D | SerializableTestUtility.java | 224 private static final int HOUR = 60*60*1000; field in SerializableTestUtility 226 new AnnualTimeZoneRule("EST", -5*HOUR, 0, 227 … new DateTimeRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 230 new AnnualTimeZoneRule("EST", -5*HOUR, 0, 231 … new DateTimeRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME), 234 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, 235 … new DateTimeRule(Calendar.APRIL, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 238 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, 239 new DateTimeRule(Calendar.JANUARY, 6, 2*HOUR, DateTimeRule.WALL_TIME), 242 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, [all …]
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | DayPeriodsCheck.java | 14 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()
|
D | DayPeriodConverter.java | 243 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()
|
D | LenientDateParser.java | 53 private static final int HOUR = 60 * MINUTE; field in LenientDateParser 84 …private static final EnumSet<Type> timeTypes = EnumSet.of(Type.HOUR, Type.MINUTE, Type.SECOND, Typ… 86 …private static final EnumSet<Type> integerTimeTypes = EnumSet.of(Type.HOUR, Type.MINUTE, Type.SECO… 333 case HOUR: in parse() 334 calendar.set(Calendar.HOUR, value); in parse() 405 firstType = hasDate ? Type.YEAR : Type.HOUR; in setFirstType() 422 firstType = Type.HOUR; in setFirstType() 452 … ERA, YEAR, MONTH, WEEKDAY, DAY, HOUR, MINUTE, SECOND, AMPM, TIMEZONE, INTEGER, SEPARATOR, UNKNOWN; enumConstant 483 return Type.HOUR; in getType() 617 allowsAt = value == 0 ? EnumSet.of(Type.HOUR, Type.MINUTE, Type.SECOND) in IntegerToken() [all …]
|
/external/libtextclassifier/native/utils/calendar/ |
D | calendar_test.cc | 70 data.SetAbsoluteValue(DatetimeComponent::ComponentType::HOUR, 7); in TEST_F() 131 data.SetAbsoluteValue(DatetimeComponent::ComponentType::HOUR, 9); in TEST_F() 269 DatetimeComponent::ComponentType::HOUR, in TEST_F() 271 in_3_hours_parse.SetRelativeCount(DatetimeComponent::ComponentType::HOUR, 3); in TEST_F() 315 data.SetAbsoluteValue(DatetimeComponent::ComponentType::HOUR, 7); in TEST_F() 332 data.SetAbsoluteValue(DatetimeComponent::ComponentType::HOUR, 7); in TEST_F() 348 data.SetAbsoluteValue(DatetimeComponent::ComponentType::HOUR, 9); in TEST_F()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
D | TimeUnitConstants.java | 31 public static final TimeUnit HOUR = TimeUnit.HOUR; field
|
D | TimeUnit.java | 49 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/ |
D | TimeUnitConstants.java | 29 public static final TimeUnit HOUR = TimeUnit.HOUR; field
|
D | TimeUnit.java | 47 public static final TimeUnit HOUR = new TimeUnit("hour", 4); field in TimeUnit 70 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | TimeUnit.java | 38 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; in values() 54 return HOUR; in readResolve()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | TimeUnit.java | 40 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; in values() 56 return HOUR; in readResolve()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/asctime/ |
D | 1-1.c | 15 #define HOUR 1 macro 45 time_ptr.tm_hour = HOUR; in main()
|
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L476RG/Drivers/STM32L4xx_HAL_Driver/Inc/ |
D | stm32l4xx_hal_rtc.h | 818 #define IS_RTC_HOUR12(HOUR) (((HOUR) > (uint32_t)0) && ((HOUR) <= (uint32_t)12)) argument 820 #define IS_RTC_HOUR24(HOUR) ((HOUR) <= (uint32_t)23) argument
|
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L4A6RG/Drivers/STM32L4xx_HAL_Driver/Inc/ |
D | stm32l4xx_hal_rtc.h | 818 #define IS_RTC_HOUR12(HOUR) (((HOUR) > (uint32_t)0) && ((HOUR) <= (uint32_t)12)) argument 820 #define IS_RTC_HOUR24(HOUR) ((HOUR) <= (uint32_t)23) argument
|