timeStampToTimeStringYMDSlash static method

String timeStampToTimeStringYMDSlash(
  1. int stamp
)

年/月/日

Implementation

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