getTimeAndDate static method

String getTimeAndDate(
  1. int timestamp
)

Implementation

static String getTimeAndDate(int timestamp) {
  final date = DateTime.fromMillisecondsSinceEpoch(timestamp * 1000);
  final dateFormat = DateFormat(DateTimeFormatConstants.hHddMMyyyy);
  return '${date.hour}h ${dateFormat.format(date)}';
}