Example #1
0
 /**
  * Formats a timestamp in the format expected by Sentry.
  *
  * @param timestamp timestamp to format
  * @return formatted timestamp
  */
 protected String formatTimestamp(long timestamp) {
   return DateFormatUtils.formatUTC(timestamp, DateFormatUtils.ISO_DATETIME_FORMAT.getPattern());
 }
Example #2
0
 /** @param date */
 protected static String formatDateWithMillis(Calendar date) {
   return DateFormatUtils.formatUTC(
       date.getTimeInMillis(), "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); // $NON-NLS-1$
 }