getDateTimeByMs static method

DateTime getDateTimeByMs(
  1. int ms, {
  2. bool isUtc = false,
})

通过 毫秒 获取 DateTime

Implementation

static DateTime getDateTimeByMs(int ms, {bool isUtc = false}) {
  return DateTime.fromMillisecondsSinceEpoch(ms, isUtc: isUtc);
}