Home
last modified time | relevance | path

Searched refs:nos (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/java/time/format/
DParsed.java443 long nos = fieldValues.get(NANO_OF_SECOND); in resolveTimeFields() local
445 NANO_OF_SECOND.checkValidValue(nos); in resolveTimeFields()
452 nos = cos * 1000 + (nos % 1000); in resolveTimeFields()
453 updateCheckConflict(MICRO_OF_SECOND, NANO_OF_SECOND, nos); in resolveTimeFields()
460 … updateCheckConflict(MILLI_OF_SECOND, NANO_OF_SECOND, los * 1_000_000L + (nos % 1_000_000L)); in resolveTimeFields()
470 long nos = fieldValues.remove(NANO_OF_SECOND); in resolveTimeFields() local
471 resolveTime(hod, moh, som, nos); in resolveTimeFields()
505 Long nos = fieldValues.get(NANO_OF_SECOND); in resolveTimeLenient() local
508 if ((moh == null && (som != null || nos != null)) || in resolveTimeLenient()
509 (moh != null && som == null && nos != null)) { in resolveTimeLenient()
[all …]
/libcore/ojluni/src/main/java/java/time/
DDuration.java240 int nos = (int) Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofSeconds() local
241 return create(secs, nos); in ofSeconds()
274 int nos = (int) (nanos % NANOS_PER_SECOND); in ofNanos() local
275 if (nos < 0) { in ofNanos()
276 nos += NANOS_PER_SECOND; in ofNanos()
279 return create(secs, nos); in ofNanos()
DInstant.java323 int nos = (int)Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofEpochSecond() local
324 return create(secs, nos); in ofEpochSecond()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKInstant.java163 private void check(Instant instant, long epochSecs, int nos) { in check() argument
165 assertEquals(instant.getNano(), nos); in check() local