convertToTime static method

String convertToTime(
  1. DateTime dateTime
)

Return a string representing format: HH:mm:ss

Implementation

static String convertToTime(DateTime dateTime) {
  return DateTimeFormatter.l10nTimeFormat.format(dateTime);
}