Add since tag

This commit is contained in:
Gary Gregory 2022-07-16 07:36:43 -04:00
parent e18a744880
commit fc7d83bf84
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ public class DurationUtils {
*
* @param startInclusive the start instant, inclusive, not null.
* @return a {@link Duration}, not null.
* @since 3.13.0
*/
public static Duration since(final Temporal startInclusive) {
return Duration.between(startInclusive, Instant.now());