Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTime.java144 … cmp = Long.compare(dateTime1.toLocalTime().getNano(), dateTime2.toLocalTime().getNano()); in timeLineOrder()
538 return Instant.ofEpochSecond(toEpochSecond(), toLocalTime().getNano()); in toInstant()
579 cmp = toLocalTime().getNano() - other.toLocalTime().getNano(); in compareTo()
610 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() < other.toLocalTime().getNano()); in isBefore()
630 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() > other.toLocalTime().getNano()); in isAfter()
648 toLocalTime().getNano() == other.toLocalTime().getNano(); in isEqual()
DChronoLocalDateTime.java453 return Instant.ofEpochSecond(toEpochSecond(offset), toLocalTime().getNano()); in toInstant()
/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);
924 assertEquals(i.getNano(), expectedNanoOfSecond);
[all …]
DTCKClock_Tick.java166 assertEquals(test.instant().getNano() % 1000_000, 0); in test_tickMillis_ZoneId()
177 assertEquals(test.instant().getNano(), 0); in test_tickSeconds_ZoneId()
179 assertEquals(test.instant().getNano(), 0); in test_tickSeconds_ZoneId()
193 assertEquals(instant.getNano(), 0); in test_tickMinutes_ZoneId()
DTCKOffsetTime.java234 assertEquals(test.getNano(), 8);
248 assertEquals(test.getNano(), 8);
263 assertEquals(test.getNano(), 0);
288 assertEquals(test.getNano(), n);
343 assertEquals(test.getNano(), 8);
355 assertEquals(test.getNano(), 8);
366 assertEquals(test.getNano(), 999_999_999);
375 assertEquals(test.getNano(), 0);
505 assertEquals(a.getNano(), localTime.getNano());
DTCKLocalTime.java205 assertEquals(test.getNano(), n); in check()
268 assertEquals(test.getNano(), 8); in now_Clock_allSecsInDay()
281 assertEquals(test.getNano(), 8); in now_Clock_beforeEpoch()
293 assertEquals(test.getNano(), 999_999_999); in now_Clock_max()
303 assertEquals(test.getNano(), 0); in now_Clock_min()
520 assertEquals(t.getNano(), n); in factory_parse_validText()
746 assertEquals(a.getNano(), ns); in test_get()
1265 assertEquals(t.getNano(), 1); in test_withNanoOfSecond_normal()
1267 assertEquals(t.getNano(), 10); in test_withNanoOfSecond_normal()
1269 assertEquals(t.getNano(), 100); in test_withNanoOfSecond_normal()
[all …]
DTCKZonedDateTime.java280 assertEquals(test.getNano(), 123456789);
325 assertEquals(test.getNano(), 0);
341 assertEquals(test.getNano(), n);
509 assertEquals(test.getNano(), 0);
526 assertEquals(test.getNano(), 0);
543 assertEquals(test.getNano(), 0);
560 assertEquals(test.getNano(), 0);
737 assertEquals(t.getNano(), n);
770 assertEquals(t.getNano(), n);
842 assertEquals(a.getNano(), localTime.getNano());
[all …]
DTCKLocalDateTime.java234 assertEquals(test.getNano(), n); in check()
312 assertEquals(test.getNano(), 123456789);
328 assertEquals(test.getNano(), 123456789);
871 assertEquals(t.getNano(), n);
1103 assertEquals(a.getNano(), ns);
1336 assertEquals(t.getNano(), 1);
1338 assertEquals(t.getNano(), 10);
1340 assertEquals(t.getNano(), 100);
1342 assertEquals(t.getNano(), 999999999);
1987 assertEquals(t.getNano(), nanos);
[all …]
DTCKOffsetDateTime.java266 assertEquals(test.getNano(), 123456789);
283 assertEquals(test.getNano(), 123456789);
314 assertEquals(test.getNano(), 0);
337 assertEquals(test.getNano(), n);
432 assertEquals(t.getNano(), n);
512 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()
DTestClock_System.java129 + time.getNano(); in formatTime()
189 final int sysnan = system1.getNano(); in test_ClockResolution()
193 nanos = highest1.getNano(); in test_ClockResolution()
327 + instant.getNano() / NANOS_IN_MILLI; in testWithOffset()
363 + instant.getNano(); in testWithOffset()
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()
323 …LocalDateTime ldt = LocalDateTime.ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offse… in ofInstant()
853 public int getNano() { in getNano() method in OffsetDateTime
854 return dateTime.getNano(); in getNano()
965 … case INSTANT_SECONDS: return ofInstant(Instant.ofEpochSecond(newValue, getNano()), offset); in with()
1825 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() > other.toLocalTime().getNano()); in isAfter()
1842 … (thisEpochSec == otherEpochSec && toLocalTime().getNano() < other.toLocalTime().getNano()); in isBefore()
1857 toLocalTime().getNano() == other.toLocalTime().getNano(); in isEqual()
DZonedDateTime.java404 return create(instant.getEpochSecond(), instant.getNano(), zone); in ofInstant()
434 return create(localDateTime.toEpochSecond(offset), localDateTime.getNano(), zone); in ofInstant()
988 create(dateTime.toEpochSecond(offset), dateTime.getNano(), zone); in withZoneSameInstant()
1168 public int getNano() { in getNano() method in ZonedDateTime
1169 return dateTime.getNano(); in getNano()
1235 return create(instant.getEpochSecond(), instant.getNano(), zone); in with()
1299 return create(newValue, getNano(), zone); in with()
DDuration.java625 public int getNano() { in getNano() method in Duration
673 return plus(duration.getSeconds(), duration.getNano()); in plus()
713 return plusSeconds(duration.getSeconds()).plusNanos(duration.getNano()); in plus()
831 int nanosToSubtract = duration.getNano(); in minus()
DOffsetTime.java257 LocalTime time = LocalTime.ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + instant.getNano()); in ofInstant()
640 public int getNano() { in getNano() method in OffsetTime
641 return time.getNano(); in getNano()
DLocalDateTime.java208 return ofEpochSecond(now.getEpochSecond(), now.getNano(), offset); in now()
393 return ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offset); in ofInstant()
858 public int getNano() { in getNano() method in LocalDateTime
859 return time.getNano(); in getNano()
DLocalTime.java361 return ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + instant.getNano()); in ofInstant()
733 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.java145 if (transition.getNano() != 0) { in of()
159 assert transition.getNano() == 0; in ZoneOffsetTransition()
DZoneOffsetTransitionRule.java194 if (time.getNano() != 0) { in of()
227 assert time.getNano() == 0; in ZoneOffsetTransitionRule()
/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/util/concurrent/
DTimeUnit.java219 int nano = duration.getNano(); in convert()
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java169 public int getNano() { in getNano() method in Duration

12