copy method
时间转换,只支持以下字符串
Implementation
DateTime copy(
{int? year, int? month, int? day, int? hour, int? minute, int? second}) {
return DateTime(
year ?? this.year,
month ?? this.month,
day ?? this.day,
hour ?? this.hour,
minute ?? this.minute,
second ?? this.second,
);
}