Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/
DLocalTime.java374 public static LocalTime ofSecondOfDay(long secondOfDay) { in ofSecondOfDay() argument
375 SECOND_OF_DAY.checkValidValue(secondOfDay); in ofSecondOfDay()
376 int hours = (int) (secondOfDay / SECONDS_PER_HOUR); in ofSecondOfDay()
377 secondOfDay -= hours * SECONDS_PER_HOUR; in ofSecondOfDay()
378 int minutes = (int) (secondOfDay / SECONDS_PER_MINUTE); in ofSecondOfDay()
379 secondOfDay -= minutes * SECONDS_PER_MINUTE; in ofSecondOfDay()
380 return create(hours, minutes, (int) secondOfDay, 0); in ofSecondOfDay()