Class Durations

java.lang.Object
org.apache.wicket.util.time.Durations

public class Durations extends Object
Utility class for Duration
  • Constructor Details

  • Method Details

    • toString

      public static String toString(Duration duration, Locale locale)
    • elapsedSince

      public static Duration elapsedSince(Instant start)
      Calculates the duration between a given Instant and the current one.
      Parameters:
      start - a given instant
      Returns:
      the duration between a given Instant and the current one