ctime method

String ctime(
  1. int timeValue
)

Converts a time_t value to a string in the format "Www Mmm dd hh:mm:ss yyyy\n".

Implementation

String ctime(int timeValue) {
  final dt = DateTime.fromMillisecondsSinceEpoch(timeValue * 1000);
  final tm = Tm.fromDateTime(dt);
  return asctime(tm);
}