Home
last modified time | relevance | path

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

12

/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/tck/java/time/
DTCKDuration.java115 assertEquals(Duration.ZERO.getNano(), 0); in test_zero()
126 assertEquals(t.getNano(), 0); in factory_seconds_long()
139 assertEquals(t.getNano(), j); in factory_seconds_long_long()
144 assertEquals(t.getNano(), j + 1000000000); in factory_seconds_long_long()
149 assertEquals(t.getNano(), j); in factory_seconds_long_long()
158 assertEquals(test.getNano(), 999999999); in factory_seconds_long_long_nanosNegativeAdjusted()
190 assertEquals(test.getNano(), expectedNanoOfSecond); in factory_millis_long()
200 assertEquals(test.getNano(), 1); in factory_nanos_nanos()
207 assertEquals(test.getNano(), 2); in factory_nanos_nanosSecs()
214 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()
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());
DTCKLocalTime.java205 assertEquals(test.getNano(), n); in check()
274 assertEquals(test.getNano(), 8); in now_Clock_allSecsInDay()
287 assertEquals(test.getNano(), 8); in now_Clock_beforeEpoch()
299 assertEquals(test.getNano(), 999_999_999); in now_Clock_max()
309 assertEquals(test.getNano(), 0); in now_Clock_min()
526 assertEquals(t.getNano(), n); in factory_parse_validText()
752 assertEquals(a.getNano(), ns); in test_get()
1271 assertEquals(t.getNano(), 1); in test_withNanoOfSecond_normal()
1273 assertEquals(t.getNano(), 10); in test_withNanoOfSecond_normal()
1275 assertEquals(t.getNano(), 100); in test_withNanoOfSecond_normal()
[all …]
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/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.java624 public int getNano() { in getNano() method in Duration
672 return plus(duration.getSeconds(), duration.getNano()); in plus()
712 return plusSeconds(duration.getSeconds()).plusNanos(duration.getNano()); in plus()
830 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.java360 return ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + instant.getNano()); in ofInstant()
732 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/ojluni/src/main/java/java/time/zone/
DZoneOffsetTransition.java141 if (transition.getNano() != 0) { in of()
/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/annotations/hiddenapi/java/time/
DDuration.java169 public int getNano() { in getNano() method in Duration

12