timestampToZh_yyyy_MM_dd function

String timestampToZh_yyyy_MM_dd(
  1. int timestamp, {
  2. bool isUtc = false,
})

时间戳转yyyy年MM月dd日

Implementation

// ignore: non_constant_identifier_names
String timestampToZh_yyyy_MM_dd(int timestamp, {bool isUtc = false}) {
  DateTime dateTime = timestampToDateTime(timestamp, isUtc: isUtc);
  return '${dateTime.year}年${twoDigits(dateTime.month)}月${twoDigits(dateTime.day)}日';
}