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 DurationelapsedSince(Instant start)Calculates the duration between a givenInstantand the current one.static StringtoString(Duration duration, Locale locale)
-
-
-
Constructor Detail
-
Durations
public Durations()
-
-
Method Detail
-
elapsedSince
public static Duration elapsedSince(Instant start)
Calculates the duration between a givenInstantand the current one.- Parameters:
start- a given instant- Returns:
- the duration between a given Instant and the current one
-
-