createWithInvariantCulture static method

OffsetDateTimePattern createWithInvariantCulture(
  1. String patternText
)

Creates a pattern for the given pattern text in the invariant culture, using the default template value of midnight January 1st 2000 at an offset of 0.

todo: we need one See the user guide for the available pattern text options.

  • patternText: Pattern text to create the pattern for

Returns: A pattern for parsing and formatting local date/times.

Implementation

static OffsetDateTimePattern createWithInvariantCulture(String patternText) =>
    _create(patternText, TimeMachineFormatInfo.invariantInfo, OffsetDateTimePatterns.defaultTemplateValue);