dateTimeParser function

DateTime dateTimeParser (TimeOfDay time, DateTime date)

Function to parse a DateTime from a TimeOfDay object and DateTime object to obtain a string

Implementation

DateTime dateTimeParser(TimeOfDay time, DateTime date) {
  int _minutes = time.minute;
  int _hours = time.hour;
  int _day = date.day;
  int _month = date.month;
  int _year = date.year;
  print(DateTime(_year, _month, _day, _hours, _minutes));
  return DateTime(_year, _month, _day, _hours, _minutes);
}