toDateTime method
Converts Gregorian date to DateTime object
Implementation
@override
DateTime toDateTime([
int hour = 0,
int minute = 0,
int second = 0,
int millisecond = 0,
int microsecond = 0,
]) {
return DateTime(
year,
month,
day,
hour,
minute,
second,
millisecond,
microsecond,
);
}