public static String formatTime(final Date date) {
    Preconditions.checkNotNull(date, "Error: Date argument can't be null.");

    return DateFormat.getTimeInstance().format(date);
  }
Formats a date string using the currently selected locale.

@param date The date to format.
@return The data string.
java/zylib/src/main/java/com/google/security/zynamics/zylib/date/DateHelpers.java