createWithCulture static method

TimePattern createWithCulture(
  1. String patternText,
  2. Culture culture
)

Creates a pattern for the given pattern text and culture.

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

Returns: A pattern for parsing and formatting offsets.

Implementation

static TimePattern createWithCulture(String patternText, Culture culture) =>
    _create(patternText, TimeMachineFormatInfo.getFormatInfo(culture));