code: public static String getTimestamp(Date time) {
          return getTimestampFormatter().format(time == null ? new Date() : time);
      }
docs: Converts a time to timestamp format.
  
  @param time Time to convert, or null for current time.
  @return Time in timestamp format.