Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/
DLocalTime.java351 public static LocalTime ofSecondOfDay(long secondOfDay) { in ofSecondOfDay() argument
352 SECOND_OF_DAY.checkValidValue(secondOfDay); in ofSecondOfDay()
353 int hours = (int) (secondOfDay / SECONDS_PER_HOUR); in ofSecondOfDay()
354 secondOfDay -= hours * SECONDS_PER_HOUR; in ofSecondOfDay()
355 int minutes = (int) (secondOfDay / SECONDS_PER_MINUTE); in ofSecondOfDay()
356 secondOfDay -= minutes * SECONDS_PER_MINUTE; in ofSecondOfDay()
357 return create(hours, minutes, (int) secondOfDay, 0); in ofSecondOfDay()
/libcore/ojluni/src/main/java/java/time/zone/
DIcuZoneRulesProvider.java256 int secondOfDay = (int) TimeUnit.MILLISECONDS.toSeconds(dateTimeRule.getRuleMillisInDay()); in toZoneOffsetTransitionRule() local
259 if (secondOfDay == SECONDS_IN_DAY) { in toZoneOffsetTransitionRule()
263 time = LocalTime.ofSecondOfDay(secondOfDay); in toZoneOffsetTransitionRule()