Class HumanReadableTime
- java.lang.Object
-
- org.antublue.test.engine.internal.util.HumanReadableTime
-
public final class HumanReadableTime extends Object
Class to create a human-readable time from a duration
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringnow()Method to get the current time as a Stringstatic StringtoHumanReadable(long duration)Method to convert a duration into a human-readable timestatic StringtoHumanReadable(long duration, boolean useShortFormat)Method to convert a duration into a human-readable time
-
-
-
Method Detail
-
toHumanReadable
public static String toHumanReadable(long duration)
Method to convert a duration into a human-readable time- Parameters:
duration- duration- Returns:
- the return value
-
toHumanReadable
public static String toHumanReadable(long duration, boolean useShortFormat)
Method to convert a duration into a human-readable time- Parameters:
duration- durationuseShortFormat- useShortFormat- Returns:
- the return value
-
now
public static String now()
Method to get the current time as a String- Returns:
- the return value
-
-