Package org.apache.wicket.util.time
Class Durations
- java.lang.Object
-
- org.apache.wicket.util.time.Durations
-
-
Constructor Summary
Constructors Constructor Description Durations()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Duration
elapsedSince(Instant start)
Calculates the duration between a givenInstant
and the current one.static String
toString(Duration duration, Locale locale)
-
-
-
Constructor Detail
-
Durations
public Durations()
-
-
Method Detail
-
elapsedSince
public static Duration elapsedSince(Instant start)
Calculates the duration between a givenInstant
and the current one.- Parameters:
start
- a given instant- Returns:
- the duration between a given Instant and the current one
-
-