/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneOffsetLocalTest.java | 40 final int HOUR = 60*60*1000; in TestGetOffsetAroundTransition() local 44 {2006, Calendar.APRIL, 2, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 45 {2006, Calendar.APRIL, 2, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition() 46 {2006, Calendar.APRIL, 2, 2, 30, 2*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 47 {2006, Calendar.APRIL, 2, 3, 00, 3*HOUR}, in TestGetOffsetAroundTransition() 48 {2006, Calendar.APRIL, 2, 3, 30, 3*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 49 {2006, Calendar.OCTOBER, 29, 0, 30, 0*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 50 {2006, Calendar.OCTOBER, 29, 1, 00, 1*HOUR}, in TestGetOffsetAroundTransition() 51 {2006, Calendar.OCTOBER, 29, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 52 {2006, Calendar.OCTOBER, 29, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition() [all …]
|
D | TimeZoneRuleTest.java | 47 private static final int HOUR = 60 * 60 * 1000; field in TimeZoneRuleTest 54 SimpleTimeZone stz = new SimpleTimeZone(-1*HOUR, "TestSTZ", in TestSimpleRuleBasedTimeZone() 55 Calendar.SEPTEMBER, -30, -Calendar.SATURDAY, 1*HOUR, SimpleTimeZone.WALL_TIME, in TestSimpleRuleBasedTimeZone() 56 Calendar.FEBRUARY, 2, Calendar.SUNDAY, 1*HOUR, SimpleTimeZone.WALL_TIME, in TestSimpleRuleBasedTimeZone() 57 1*HOUR); in TestSimpleRuleBasedTimeZone() 66 -1*HOUR, // Raw offset in TestSimpleRuleBasedTimeZone() 67 1*HOUR); // DST saving amount in TestSimpleRuleBasedTimeZone() 72 1*HOUR, DateTimeRule.WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone() 74 -1*HOUR /* rawOffset */, 1*HOUR /* dstSavings */, dtr, in TestSimpleRuleBasedTimeZone() 78 1*HOUR, DateTimeRule.WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone() [all …]
|
D | TimeZoneAliasTest.java | 161 static private final long HOUR = 1000*60*60; field in TimeZoneAliasTest.Zone 162 static private final double DHOUR = HOUR; 163 static private final long DAY = 24*HOUR; 165 static private final long EPSILON = HOUR/4;
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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 …]
|
D | TimeZoneAliasTest.java | 164 static private final long HOUR = 1000*60*60; field in TimeZoneAliasTest.Zone 165 static private final double DHOUR = HOUR; 166 static private final long DAY = 24*HOUR; 168 static private final long EPSILON = HOUR/4;
|
/third_party/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 …]
|
/third_party/python/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:
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/serializable/ |
D | SerializableTestUtility.java | 226 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 …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
D | SerializableTestUtility.java | 225 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 …]
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | ccaltst.c | 2571 const int32_t HOUR = 60*60*1000; in TestGetTimeZoneOffsetFromLocal() local 2575 {2006, UCAL_APRIL, 2, 1, 30, 1*HOUR+30*MINUTE}, in TestGetTimeZoneOffsetFromLocal() 2576 {2006, UCAL_APRIL, 2, 2, 00, 2*HOUR}, in TestGetTimeZoneOffsetFromLocal() 2577 {2006, UCAL_APRIL, 2, 2, 30, 2*HOUR+30*MINUTE}, in TestGetTimeZoneOffsetFromLocal() 2578 {2006, UCAL_APRIL, 2, 3, 00, 3*HOUR}, in TestGetTimeZoneOffsetFromLocal() 2579 {2006, UCAL_APRIL, 2, 3, 30, 3*HOUR+30*MINUTE}, in TestGetTimeZoneOffsetFromLocal() 2580 {2006, UCAL_OCTOBER, 29, 0, 30, 0*HOUR+30*MINUTE}, in TestGetTimeZoneOffsetFromLocal() 2581 {2006, UCAL_OCTOBER, 29, 1, 00, 1*HOUR}, in TestGetTimeZoneOffsetFromLocal() 2582 {2006, UCAL_OCTOBER, 29, 1, 30, 1*HOUR+30*MINUTE}, in TestGetTimeZoneOffsetFromLocal() 2583 {2006, UCAL_OCTOBER, 29, 2, 00, 2*HOUR}, in TestGetTimeZoneOffsetFromLocal() [all …]
|
/third_party/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
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | TimeUnit.java | 39 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; in values() 55 return HOUR; in readResolve()
|
/third_party/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()
|
/third_party/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()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | DateIntervalFormat.java | 818 } else if ( fromCalendar.get(Calendar.HOUR) != in getPatterns() 819 toCalendar.get(Calendar.HOUR) ) { in getPatterns() 820 field = Calendar.HOUR; in getPatterns() 917 } else if ( fromCalendar.get(Calendar.HOUR) != in formatImpl() 918 toCalendar.get(Calendar.HOUR) ) { in formatImpl() 919 field = Calendar.HOUR; in formatImpl() 935 …boolean fromToOnSameDay = (field==Calendar.AM_PM || field==Calendar.HOUR || field==Calendar.MINUTE… in formatImpl() 1460 … concatSingleDate2TimeInterval(fDateTimeFormat, datePattern, Calendar.HOUR, intervalPatterns); in initializeIntervalPattern() 1777 … genIntervalPattern(Calendar.HOUR, skeleton, bestSkeleton, differenceInfo, intervalPatterns); in genSeparateDateTimePtn() 1831 Calendar.HOUR); in genIntervalPattern()
|
D | RelativeDateTimeFormatter.java | 230 HOUR, enumConstant 309 HOUR, enumConstant 686 case HOUR: relunit = RelativeUnit.HOURS; break; in formatNumericImpl() 858 case HOUR: absunit = AbsoluteUnit.HOUR; break; in formatRelativeImpl() 1106 HOUR(RelativeUnit.HOURS, AbsoluteUnit.HOUR), enumConstant 1152 return HOUR; in orNullFromString()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
D | MeasureUnitTest.java | 366 MeasureUnit.HOUR, in TestCompatible53() 404 MeasureUnit.HOUR, in TestCompatible54() 532 MeasureUnit.HOUR, in TestCompatible55() 664 MeasureUnit.HOUR, in TestCompatible56() 805 MeasureUnit.HOUR, in TestCompatible57() 950 MeasureUnit.HOUR, in TestCompatible58() 1091 MeasureUnit.HOUR, in TestCompatible59() 1239 MeasureUnit.HOUR, in TestCompatible63() 1389 MeasureUnit.HOUR, in TestCompatible64() 1558 MeasureUnit.HOUR, in TestCompatible65() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 94 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 …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateIntervalFormat.java | 846 } else if ( fromCalendar.get(Calendar.HOUR) != in getPatterns() 847 toCalendar.get(Calendar.HOUR) ) { in getPatterns() 848 field = Calendar.HOUR; in getPatterns() 951 } else if ( fromCalendar.get(Calendar.HOUR) != in formatImpl() 952 toCalendar.get(Calendar.HOUR) ) { in formatImpl() 953 field = Calendar.HOUR; in formatImpl() 969 …boolean fromToOnSameDay = (field==Calendar.AM_PM || field==Calendar.HOUR || field==Calendar.MINUTE… in formatImpl() 1552 … concatSingleDate2TimeInterval(fDateTimeFormat, datePattern, Calendar.HOUR, intervalPatterns); in initializeIntervalPattern() 1950 … genIntervalPattern(Calendar.HOUR, skeleton, bestSkeleton, differenceInfo, intervalPatterns); in genSeparateDateTimePtn() 2004 Calendar.HOUR); in genIntervalPattern()
|
D | RelativeDateTimeFormatter.java | 257 HOUR, enumConstant 350 HOUR, enumConstant 768 case HOUR: relunit = RelativeUnit.HOURS; break; in formatNumericImpl() 944 case HOUR: absunit = AbsoluteUnit.HOUR; break; in formatRelativeImpl() 1196 HOUR(RelativeUnit.HOURS, AbsoluteUnit.HOUR), enumConstant 1242 return HOUR; in orNullFromString()
|