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