cloneDate function
Implementation
DateTime cloneDate(
DateTime orig, {
int? year,
int? month,
int? day,
int? hour,
int? minute,
int? second,
int? millisecond,
int? microsecond,
}) {
return DateTime(
year ?? orig.year,
month ?? orig.month,
day ?? orig.day,
hour ?? orig.hour,
minute ?? orig.minute,
second ?? orig.second,
millisecond ?? orig.millisecond,
microsecond ?? orig.microsecond,
);
}