create static method

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

创建日期

Implementation

static DateTime create(bool utc, int year,
        [int month = 1,
        int day = 1,
        int hour = 0,
        int minute = 0,
        int second = 0,
        int millisecond = 0,
        int microsecond = 0]) =>
    utc
        ? DateTime.utc(
            year, month, day, hour, minute, second, millisecond, microsecond)
        : DateTime(
            year, month, day, hour, minute, second, millisecond, microsecond);