/** * Returns the given double value as time string. * * @return a time representation. */ public static String formatTime(final Double aTime) { if (aTime != null) { return UnitOfTime.format(aTime.doubleValue()); } return "-"; }
/** * Formats a given time as human readable timestamp. * * @param aTime the time to format. * @return a timestamp, never <code>null</code>. */ private static String formatTimestamp(final double aTime) { return UnitOfTime.toUnit(aTime).formatHumanReadable(aTime); }