Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/
DLocalTime.java369 public static LocalTime ofNanoOfDay(long nanoOfDay) { in ofNanoOfDay() argument
370 NANO_OF_DAY.checkValidValue(nanoOfDay); in ofNanoOfDay()
371 int hours = (int) (nanoOfDay / NANOS_PER_HOUR); in ofNanoOfDay()
372 nanoOfDay -= hours * NANOS_PER_HOUR; in ofNanoOfDay()
373 int minutes = (int) (nanoOfDay / NANOS_PER_MINUTE); in ofNanoOfDay()
374 nanoOfDay -= minutes * NANOS_PER_MINUTE; in ofNanoOfDay()
375 int seconds = (int) (nanoOfDay / NANOS_PER_SECOND); in ofNanoOfDay()
376 nanoOfDay -= seconds * NANOS_PER_SECOND; in ofNanoOfDay()
377 return create(hours, minutes, seconds, (int) nanoOfDay); in ofNanoOfDay()