DateTime constructor

DateTime(
  1. int year,
  2. [int month = 1,
  3. int day = 1,
  4. int hour = 0,
  5. int minute = 0,
  6. int second = 0,
  7. int millisecond = 0,
  8. int microsecond = 0]
)

Constructs a DateTime instance specified in the local time zone.

For example, to create a DateTime object representing the 7th of September 2017, 5:30pm

final dentistAppointment = DateTime(2017, 9, 7, 17, 30);

Implementation

DateTime