Пример #1
0
 @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());
 }
Пример #2
0
 @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());
 }