}
return deduplicate(cal.toCalendricalMerger().merge().get(LocalTime.rule()));
}
private int parseSecs(String str) {
DateTimeFormatter f = new DateTimeFormatterBuilder()
.appendValue(ISOChronology.hourOfDayRule())
.optionalStart().appendLiteral(':').appendValue(ISOChronology.minuteOfHourRule(), 2)
.optionalStart().appendLiteral(':').appendValue(ISOChronology.secondOfMinuteRule(), 2)
.toFormatter();
int pos = 0;
if (str.startsWith("-")) {
pos = 1;
}
ParsePosition pp = new ParsePosition(pos);
DateTimeParseContext cal = f.parse(str, pp);
if (pp.getErrorIndex() >= 0) {
throw new IllegalArgumentException(str);
}
LocalTime time = cal.toCalendricalMerger().merge().get(LocalTime.rule());
int secs = time.getHourOfDay() * 60 * 60 +