Flutter/日時
提供: 初心者エンジニアの簡易メモ
unixtime
int unixtime = DateTime.now().toUtc().millisecondsSinceEpoch; print("unixtime=$unixtime"); // unixtime=1557085819211
DateTime dd = new DateTime.fromMillisecondsSinceEpoch(unixtime); print("date=$dd"); // date=2019-05-06 04:56:30.237
x日前
https://stackoverflow.com/questions/50632217/dart-flutter-converting-timestamp