📜  dateTime.now addyears dart 代码示例

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

代码示例1
DateTime now = new DateTime.now();
DateTime tenYearsLater = DateTime(now.year + 10, now.month, now.day);