createWithCulture static method

AnnualDatePattern createWithCulture(
  1. String patternText,
  2. Culture culture, [
  3. AnnualDate? templateValue
])

Creates a pattern for the given pattern text, culture, and template value.

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

  • patternText: Pattern text to create the pattern for
  • culture: The culture to use in the pattern
  • templateValue: Template value to use for unspecified fields. Defaults to a template value of 2000-01-01.

Returns: A pattern for parsing and formatting annual dates.

Implementation

static AnnualDatePattern createWithCulture(String patternText, Culture culture, [AnnualDate? templateValue]) =>
    _create(patternText, TimeMachineFormatInfo.getFormatInfo(culture), templateValue ?? AnnualDatePatterns.defaultTemplateValue);