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.java458 long nos = fieldValues.get(NANO_OF_SECOND); in resolveTimeFields() local
460 NANO_OF_SECOND.checkValidValue(nos); in resolveTimeFields()
467 nos = cos * 1000 + (nos % 1000); in resolveTimeFields()
468 updateCheckConflict(MICRO_OF_SECOND, NANO_OF_SECOND, nos); in resolveTimeFields()
475 … updateCheckConflict(MILLI_OF_SECOND, NANO_OF_SECOND, los * 1_000_000L + (nos % 1_000_000L)); in resolveTimeFields()
498 long nos = fieldValues.remove(NANO_OF_SECOND); in resolveTimeFields() local
499 resolveTime(hod, moh, som, nos); in resolveTimeFields()
554 Long nos = fieldValues.get(NANO_OF_SECOND); in resolveTimeLenient() local
557 if ((moh == null && (som != null || nos != null)) || in resolveTimeLenient()
558 (moh != null && som == null && nos != null)) { in resolveTimeLenient()
[all …]
/libcore/ojluni/src/main/java/java/time/
DDuration.java243 int nos = (int) Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofSeconds() local
244 return create(secs, nos); in ofSeconds()
277 int nos = (int) (nanos % NANOS_PER_SECOND); in ofNanos() local
278 if (nos < 0) { in ofNanos()
279 nos += NANOS_PER_SECOND; in ofNanos()
282 return create(secs, nos); in ofNanos()
DInstant.java324 int nos = (int)Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofEpochSecond() local
325 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