📜  dart 日期时间差 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:04.483000             🧑  作者: Mango

代码示例1
//the birthday's date
 final birthday = DateTime(1967, 10, 12);
 final date2 = DateTime.now();
 final difference = date2.difference(birthday).inDays;