package com.baeldung.datetime;

import java.time.Duration;
import java.time.LocalTime;
import java.time.Period;

public class UseDuration {

    public LocalTime modifyDates(LocalTime localTime, Duration duration) {
        return localTime.plus(duration);
    }

    public Duration getDifferenceBetweenDates(LocalTime localTime1, LocalTime localTime2) {
        return Duration.between(localTime1, localTime2);
    }
}
