Flutter 时间戳转化成日期
Flutter Dart中日期转化成时间戳
var now = new DateTime.now();
print(now.millisecondsSinceEpoch);//单位毫秒,13位时间戳
Flutter Dart中时间戳转化成日期
var now = new DateTime.now();
var a=now.millisecondsSinceEpoch; //时间戳
print(DateTime.fromMillisecondsSinceEpoch(a));