IsoDateFromParts constructor

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

Creates $dateFromParts operator expression

Uses ISO Week Date fields to construct Date

Implementation

IsoDateFromParts(
    {@required year, week, day, hour, minute, second, millisecond, timezone})
    : super(
          'dateFromParts',
          AEObject({
            'isoWeekYear': year,
            'isoWeek': week,
            'isoDayOfWeek': day,
            'hour': hour,
            'minute': minute,
            'second': second,
            'millisecond': millisecond,
            'timezone': timezone
          }));