formatTimestamp static method

String formatTimestamp(
  1. int timestamp
)

格式化时间戳

Implementation

static String formatTimestamp(int timestamp) {
  final dateTime = DateTime.fromMillisecondsSinceEpoch(timestamp);
  return dateTime.toIso8601String();
}