@Override public Time minus(Time that) { DateTimeInterval interval = new DateTimeInterval(this); interval.minus(that.getHour(), that.getMinute(), that.getSecond(), that.getNanoseconds()); return GregorianDateTime.newTime( interval.getResultHour(), interval.getResultMinute(), interval.getResultSecond(), interval.getResultNanoseconds()); }
@Override public Time minus(Integer hour, Integer minute, Integer second) { DateTimeInterval interval = new DateTimeInterval(this); interval.minus(hour, minute, second, 0); return GregorianDateTime.newTime( interval.getResultHour(), interval.getResultMinute(), interval.getResultSecond(), interval.getResultNanoseconds()); }