timeStampToTimeString3 static method

String timeStampToTimeString3(
  1. int stamp
)

时:分 stamp 秒

Implementation

static String timeStampToTimeString3(int stamp) {
  DateTime date = DateTime.fromMillisecondsSinceEpoch(stamp * 1000);
  // print("${date.year},${date.month},${date.day},${date.hour},${date.minute}");
  return "${twoChar("${date.hour}")}:${twoChar("${date.minute}")}";
}