DateFromParts constructor

DateFromParts({
  1. @required dynamic year,
  2. dynamic month,
  3. dynamic day,
  4. dynamic hour,
  5. dynamic minute,
  6. dynamic second,
  7. dynamic millisecond,
  8. dynamic timezone,
})

Creates $dateFromParts operator expression

Constructs and returns a Date object given the date’s constituent properties.

Implementation

DateFromParts(
    {@required year, month, day, hour, minute, second, millisecond, timezone})
    : super(
          'dateFromParts',
          AEObject({
            'year': year,
            'month': month,
            'day': day,
            'hour': hour,
            'minute': minute,
            'second': second,
            'millisecond': millisecond,
            'timezone': timezone
          }));