Exemplo n.º 1
0
 /**
  * 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 "-";
 }
Exemplo n.º 2
0
 /**
  * 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);
 }