Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java113 assertEquals(Duration.ZERO.getNano(), 0); in test_zero()
124 assertEquals(t.getNano(), 0); in factory_seconds_long()
137 assertEquals(t.getNano(), j); in factory_seconds_long_long()
142 assertEquals(t.getNano(), j + 1000000000); in factory_seconds_long_long()
147 assertEquals(t.getNano(), j); in factory_seconds_long_long()
156 assertEquals(test.getNano(), 999999999); in factory_seconds_long_long_nanosNegativeAdjusted()
188 assertEquals(test.getNano(), expectedNanoOfSecond); in factory_millis_long()
198 assertEquals(test.getNano(), 1); in factory_nanos_nanos()
205 assertEquals(test.getNano(), 2); in factory_nanos_nanosSecs()
212 assertEquals(test.getNano(), 999999999); in factory_nanos_negative()
[all …]
DTCKInstant.java165 assertEquals(instant.getNano(), nos); in check()
233 assertEquals(t.getNano(), 0);
246 assertEquals(t.getNano(), j);
251 assertEquals(t.getNano(), j + 1000000000);
256 assertEquals(t.getNano(), j);
265 assertEquals(test.getNano(), 999999999);
302 assertEquals(t.getNano(), expectedNanoOfSecond);
334 assertEquals(t.getNano(), expectedNanoOfSecond);
341 assertEquals(t.getNano(), expectedNanoOfSecond);
918 assertEquals(i.getNano(), expectedNanoOfSecond);
[all …]
DTCKClock_Tick.java166 assertEquals(test.instant().getNano(), 0); in test_tickSeconds_ZoneId()
168 assertEquals(test.instant().getNano(), 0); in test_tickSeconds_ZoneId()
182 assertEquals(instant.getNano(), 0); in test_tickMinutes_ZoneId()
DTCKLocalTime.java203 assertEquals(test.getNano(), n); in check()
272 assertEquals(test.getNano(), 8); in now_Clock_allSecsInDay()
285 assertEquals(test.getNano(), 8); in now_Clock_beforeEpoch()
297 assertEquals(test.getNano(), 999_999_999); in now_Clock_max()
307 assertEquals(test.getNano(), 0); in now_Clock_min()
492 assertEquals(t.getNano(), n); in factory_parse_validText()
718 assertEquals(a.getNano(), ns); in test_get()
1237 assertEquals(t.getNano(), 1); in test_withNanoOfSecond_normal()
1239 assertEquals(t.getNano(), 10); in test_withNanoOfSecond_normal()
1241 assertEquals(t.getNano(), 100); in test_withNanoOfSecond_normal()
[all …]
DTCKOffsetTime.java230 assertEquals(test.getNano(), 8);
244 assertEquals(test.getNano(), 8);
259 assertEquals(test.getNano(), 0);
284 assertEquals(test.getNano(), n);
339 assertEquals(test.getNano(), 8);
351 assertEquals(test.getNano(), 8);
362 assertEquals(test.getNano(), 999_999_999);
371 assertEquals(test.getNano(), 0);
513 assertEquals(a.getNano(), localTime.getNano());
DTCKZonedDateTime.java286 assertEquals(test.getNano(), 123456789);
331 assertEquals(test.getNano(), 0);
347 assertEquals(test.getNano(), n);
515 assertEquals(test.getNano(), 0);
532 assertEquals(test.getNano(), 0);
549 assertEquals(test.getNano(), 0);
566 assertEquals(test.getNano(), 0);
743 assertEquals(t.getNano(), n);
775 assertEquals(t.getNano(), n);
847 assertEquals(a.getNano(), localTime.getNano());
[all …]
DTCKLocalDateTime.java235 assertEquals(test.getNano(), n); in check()
318 assertEquals(test.getNano(), 123456789);
334 assertEquals(test.getNano(), 123456789);
877 assertEquals(t.getNano(), n);
1109 assertEquals(a.getNano(), ns);
1342 assertEquals(t.getNano(), 1);
1344 assertEquals(t.getNano(), 10);
1346 assertEquals(t.getNano(), 100);
1348 assertEquals(t.getNano(), 999999999);
1993 assertEquals(t.getNano(), nanos);
[all …]
DTCKOffsetDateTime.java269 assertEquals(test.getNano(), 123456789);
286 assertEquals(test.getNano(), 123456789);
317 assertEquals(test.getNano(), 0);
340 assertEquals(test.getNano(), n);
435 assertEquals(t.getNano(), n);
527 assertEquals(a.getNano(), localDateTime.getNano());
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTime.java531 return Instant.ofEpochSecond(toEpochSecond(), toLocalTime().getNano()); in toInstant()
572 cmp = toLocalTime().getNano() - other.toLocalTime().getNano(); in compareTo()
603 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() < other.toLocalTime().getNano()); in isBefore()
623 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() > other.toLocalTime().getNano()); in isAfter()
641 toLocalTime().getNano() == other.toLocalTime().getNano(); in isEqual()
DChronoLocalDateTime.java446 return Instant.ofEpochSecond(toEpochSecond(offset), toLocalTime().getNano()); in toInstant()
DAbstractChronology.java154 … cmp = Long.compare(dateTime1.toLocalTime().getNano(), dateTime2.toLocalTime().getNano());
DChronoZonedDateTimeImpl.java174 …LocalDateTime ldt = LocalDateTime.ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offse… in ofInstant()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime_instants.java166 assertEquals(test.getNano(), 0); in factory_ofInstant_minWithMinOffset()
182 assertEquals(test.getNano(), 0); in factory_ofInstant_minWithMaxOffset()
198 assertEquals(test.getNano(), 0); in factory_ofInstant_maxWithMinOffset()
214 assertEquals(test.getNano(), 0); in factory_ofInstant_maxWithMaxOffset()
289 assertEquals(test.getNano(), 0); in test_toInstant_19700101()
296 assertEquals(test.getNano(), 1); in test_toInstant_19700101_oneNano()
303 assertEquals(test.getNano(), 999999999); in test_toInstant_19700101_minusOneNano()
310 assertEquals(test.getNano(), 0); in test_toInstant_19700102()
317 assertEquals(test.getNano(), 0); in test_toInstant_19691231()
DTestLocalTime.java91 assertEquals(time.getNano(), n); in check()
/libcore/ojluni/src/main/java/java/time/
DOffsetDateTime.java173 cmp = datetime1.toLocalTime().getNano() - datetime2.toLocalTime().getNano(); in compareInstant()
322 …LocalDateTime ldt = LocalDateTime.ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offse… in ofInstant()
852 public int getNano() { in getNano() method in OffsetDateTime
853 return dateTime.getNano(); in getNano()
965 … case INSTANT_SECONDS: return ofInstant(Instant.ofEpochSecond(newValue, getNano()), offset); in with()
1819 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() > other.toLocalTime().getNano()); in isAfter()
1836 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() < other.toLocalTime().getNano()); in isBefore()
1851 toLocalTime().getNano() == other.toLocalTime().getNano(); in isEqual()
DZonedDateTime.java403 return create(instant.getEpochSecond(), instant.getNano(), zone); in ofInstant()
433 return create(localDateTime.toEpochSecond(offset), localDateTime.getNano(), zone); in ofInstant()
986 create(dateTime.toEpochSecond(offset), dateTime.getNano(), zone); in withZoneSameInstant()
1166 public int getNano() { in getNano() method in ZonedDateTime
1167 return dateTime.getNano(); in getNano()
1235 return create(instant.getEpochSecond(), instant.getNano(), zone); in with()
1300 return create(newValue, getNano(), zone); in with()
DDuration.java622 public int getNano() { in getNano() method in Duration
670 return plus(duration.getSeconds(), duration.getNano()); in plus()
710 return plusSeconds(duration.getSeconds()).plusNanos(duration.getNano()); in plus()
828 int nanosToSubtract = duration.getNano(); in minus()
DOffsetTime.java256 LocalTime time = LocalTime.ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + instant.getNano()); in ofInstant()
639 public int getNano() { in getNano() method in OffsetTime
640 return time.getNano(); in getNano()
DLocalDateTime.java207 return ofEpochSecond(now.getEpochSecond(), now.getNano(), offset); in now()
392 return ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offset); in ofInstant()
861 public int getNano() { in getNano() method in LocalDateTime
862 return time.getNano(); in getNano()
DClock.java627 long nanos = instant.getNano(); in instant()
DLocalTime.java274 return ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + now.getNano()); in now()
709 public int getNano() { in getNano() method in LocalTime
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java150 long nanos = unit.convert(instant.getNano(), TimeUnit.NANOSECONDS); in to()
174 int nanos = instant.getNano(); in toMillis()
349 cmp = Long.compare(toInstant().getNano(), other.toInstant().getNano()); in compareTo()
419 nanos = toInstant().getNano(); in toString()
441 int fraction = ldt.getNano(); in toString()
/libcore/luni/src/test/java/libcore/java/util/
DDateTest.java180 assertEquals("Millis should be a millions of nanos", 0, instant.getNano() % 1000000); in check_convertToInstantAndBack()
/libcore/ojluni/src/main/java/java/time/zone/
DZoneOffsetTransition.java141 if (transition.getNano() != 0) { in of()
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java169 public int getNano() { in getNano() method in Duration

12