getFormattedTimeEvent static method

String getFormattedTimeEvent(
  1. int time
)

Implementation

static String getFormattedTimeEvent(int time) {
  DateFormat newFormat = new DateFormat("h:mm a");
  return newFormat.format(new DateTime.fromMillisecondsSinceEpoch(time));
}