Home
last modified time | relevance | path

Searched refs:getRules (Results 1 – 25 of 30) sorted by relevance

12

/libcore/ojluni/src/test/java/time/test/java/time/
DTestZoneId.java119 assertEquals(test.getRules().isFixedOffset(), true); in test_constant_UTC()
120 assertEquals(test.getRules().getOffset(Instant.ofEpochSecond(0L)), ZoneOffset.UTC); in test_constant_UTC()
121 checkOffset(test.getRules(), createLDT(2008, 6, 30), ZoneOffset.UTC, 1); in test_constant_UTC()
160 assertEquals(test.getRules().isFixedOffset(), false); in test_London()
165 …assertEquals(test.getRules().getOffset(createInstant(2008, 1, 1, ZoneOffset.UTC)), ZoneOffset.ofHo… in test_London_getOffset()
166 …assertEquals(test.getRules().getOffset(createInstant(2008, 2, 1, ZoneOffset.UTC)), ZoneOffset.ofHo… in test_London_getOffset()
167 …assertEquals(test.getRules().getOffset(createInstant(2008, 3, 1, ZoneOffset.UTC)), ZoneOffset.ofHo… in test_London_getOffset()
168 …assertEquals(test.getRules().getOffset(createInstant(2008, 4, 1, ZoneOffset.UTC)), ZoneOffset.ofHo… in test_London_getOffset()
169 …assertEquals(test.getRules().getOffset(createInstant(2008, 5, 1, ZoneOffset.UTC)), ZoneOffset.ofHo… in test_London_getOffset()
170 …assertEquals(test.getRules().getOffset(createInstant(2008, 6, 1, ZoneOffset.UTC)), ZoneOffset.ofHo… in test_London_getOffset()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRulesProvider.java105 ZoneRules rules = ZoneRulesProvider.getRules("Europe/London", false); in test_getRules_StringBoolean()
107 ZoneRules rules2 = ZoneRulesProvider.getRules("Europe/London", false); in test_getRules_StringBoolean()
113 ZoneRulesProvider.getRules("Europe/Lon", false); in test_getRules_StringBoolean_unknownId()
118 ZoneRulesProvider.getRules(null, false); in test_getRules_StringBoolean_null()
127 ZoneRules rules1 = ZoneId.of("DynamicLocation").getRules(); in test_getRules_StringBoolean_dynamic()
130 ZoneRules rules2 = ZoneId.of("DynamicLocation").getRules(); in test_getRules_StringBoolean_dynamic()
142 ZoneRules rules = ZoneRulesProvider.getRules("Europe/London", false); in test_getVersions_String()
181 …assertEquals(ZoneRulesProvider.getRules("FooLocation", false), ZoneOffset.of("+01:45").getRules()); in test_registerProvider()
185 final ZoneRules rules = ZoneOffset.of("+01:45").getRules();
206 final ZoneRules BASE = ZoneOffset.of("+01:15").getRules();
[all …]
DTCKFixedZoneRules.java95 return offset.getRules(); in make()
DTCKZoneRules.java112 return ZoneId.of("Europe/London").getRules(); in europeLondon()
494 return ZoneId.of("Europe/Paris").getRules(); in europeParis()
677 return ZoneId.of("America/New_York").getRules(); in americaNewYork()
877 return ZoneId.of("Asia/Kathmandu").getRules(); in asiaKathmandu()
908 return ZoneId.of("Pacific/Apia").getRules(); in pacificApia()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZoneId.java236 assertEquals(test.getRules().isFixedOffset(), true); in factory_of_String_offsetBasedValid_noPrefix()
237 assertEquals(test.getRules().getOffset(Instant.EPOCH), ZoneOffset.of(id)); in factory_of_String_offsetBasedValid_noPrefix()
281 assertEquals(test.getRules(), ZoneOffset.of(offsetId).getRules()); in factory_of_String_offsetBasedValid_prefixUTC()
284 assertEquals(test.getRules().isFixedOffset(), true); in factory_of_String_offsetBasedValid_prefixUTC()
285 assertEquals(test.getRules().getOffset(Instant.EPOCH), ZoneOffset.of(offsetId)); in factory_of_String_offsetBasedValid_prefixUTC()
292 assertEquals(test.getRules(), ZoneOffset.of(offsetId).getRules()); in factory_of_String_offsetBasedValid_prefixGMT()
295 assertEquals(test.getRules().isFixedOffset(), true); in factory_of_String_offsetBasedValid_prefixGMT()
296 assertEquals(test.getRules().getOffset(Instant.EPOCH), ZoneOffset.of(offsetId)); in factory_of_String_offsetBasedValid_prefixGMT()
303 assertEquals(test.getRules(), ZoneOffset.of(offsetId).getRules()); in factory_of_String_offsetBasedValid_prefixUT()
306 assertEquals(test.getRules().isFixedOffset(), true); in factory_of_String_offsetBasedValid_prefixUT()
[all …]
DTCKZoneOffset.java487 assertEquals(offset.getRules().isFixedOffset(), true); in test_getRules()
488 assertEquals(offset.getRules().getOffset((Instant) null), offset); in test_getRules()
489 assertEquals(offset.getRules().getDaylightSavings((Instant) null), Duration.ZERO); in test_getRules()
490 assertEquals(offset.getRules().getStandardOffset((Instant) null), offset); in test_getRules()
491 assertEquals(offset.getRules().nextTransition((Instant) null), null); in test_getRules()
492 assertEquals(offset.getRules().previousTransition((Instant) null), null); in test_getRules()
494 assertEquals(offset.getRules().isValidOffset((LocalDateTime) null, offset), true); in test_getRules()
495 assertEquals(offset.getRules().isValidOffset((LocalDateTime) null, ZoneOffset.UTC), false); in test_getRules()
496 assertEquals(offset.getRules().isValidOffset((LocalDateTime) null, null), false); in test_getRules()
497 assertEquals(offset.getRules().getOffset((LocalDateTime) null), offset); in test_getRules()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/
DTCKZoneRulesSerialization.java105 return ZoneId.of("Europe/London").getRules(); in europeLondon()
113 return ZoneId.of("Europe/Paris").getRules(); in europeParis()
120 return ZoneId.of("America/New_York").getRules(); in americaNewYork()
DTCKFixedZoneRulesSerialization.java85 return offset.getRules(); in make()
/libcore/ojluni/src/main/java/java/time/
DZoneRegion.java120 rules = ZoneRulesProvider.getRules(zoneId, true); in ofId()
174 public ZoneRules getRules() { in getRules() method in ZoneRegion
177 return (rules != null ? rules : ZoneRulesProvider.getRules(id, false)); in getRules()
DZoneId.java384 return new ZoneRegion(prefix, offset.getRules()); in ofOffset()
556 public abstract ZoneRules getRules();
573 ZoneRules rules = getRules();
DZonedDateTime.java366 ZoneRules rules = zone.getRules(); in ofLocal()
430 if (zone.getRules().isValidOffset(localDateTime, offset)) { in ofInstant()
447 ZoneRules rules = zone.getRules(); in create()
472 ZoneRules rules = zone.getRules(); in ofStrict()
637 … if (offset.equals(this.offset) == false && zone.getRules().isValidOffset(dateTime, offset)) { in resolveOffset()
885 ZoneOffsetTransition trans = getZone().getRules().getTransition(dateTime); in withEarlierOffsetAtOverlap()
913 ZoneOffsetTransition trans = getZone().getRules().getTransition(toLocalDateTime()); in withLaterOffsetAtOverlap()
DOffsetTime.java195 return ofInstant(now, clock.getZone().getRules().getOffset(now)); in now()
252 ZoneRules rules = zone.getRules(); in ofInstant()
DOffsetDateTime.java241 return ofInstant(now, clock.getZone().getRules().getOffset(now)); in now()
320 ZoneRules rules = zone.getRules(); in ofInstant()
DZoneOffset.java498 public ZoneRules getRules() {
DLocalDateTime.java206 ZoneOffset offset = clock.getZone().getRules().getOffset(now); in now()
390 ZoneRules rules = zone.getRules(); in ofInstant()
DLocalDate.java219 ZoneOffset offset = clock.getZone().getRules().getOffset(now); in now()
1811 ZoneRules rules = zone.getRules(); in atStartOfDay()
/libcore/ojluni/src/main/java/java/text/
DRuleBasedCollator.java316 public String getRules() in getRules() method in RuleBasedCollator
319 return collAsICU().getRules(); in getRules()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTimeImpl.java141 ZoneRules rules = zone.getRules(); in ofBest()
171 ZoneRules rules = zone.getRules(); in ofInstant()
232 ZoneOffsetTransition trans = getZone().getRules().getTransition(LocalDateTime.from(this)); in withEarlierOffsetAtOverlap()
244 ZoneOffsetTransition trans = getZone().getRules().getTransition(LocalDateTime.from(this)); in withLaterOffsetAtOverlap()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DRuleBasedCollatorTest.java54 assertEquals(coll.getRules(), clone.getRules()); in testClone()
97 assertEquals(rule, coll.getRules()); in testGetRules()
DCollatorTest.java176 new RuleBasedCollator(((RuleBasedCollator) c1).getRules()); in failing_test_getAvailableLocales()
/libcore/ojluni/src/test/java/time/test/java/time/zone/
DTestFixedZoneRules.java82 return offset.getRules(); in make()
/libcore/ojluni/src/main/java/java/time/zone/
DZoneRulesProvider.java181 public static ZoneRules getRules(String zoneId, boolean forCaching) { in getRules() method in ZoneRulesProvider
/libcore/ojluni/annotations/hiddenapi/java/time/
DZoneId.java120 public abstract java.time.zone.ZoneRules getRules(); in getRules() method in ZoneId
/libcore/ojluni/src/main/java/java/time/format/
DDateTimePrintContext.java154 …temporal.get(OFFSET_SECONDS) != overrideZone.getRules().getOffset(Instant.EPOCH).getTotalSeconds()… in adjust()
/libcore/ojluni/src/test/java/time/tck/java/time/serial/
DTCKZoneIdSerialization.java112 deser.getRules(); in test_deserialization_lenient_characters()

12