DATETIME top-level property

Parser<DateTimeParser> DATETIME
final

Implementation

final Parser<DateTimeParser> DATETIME = (char('@') &
        DATEFORMAT &
        char('T') &
        (TIMEFORMAT & TIMEZONEOFFSETFORMAT.optional()).optional())
    .flatten()
    .map((value) {
  return DateTimeParser(FhirDateTime(value.replaceFirst('@', '')));
});