createWithCulture static method
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 forculture
: The culture to use in the pattern
Returns: A pattern for parsing and formatting offsets.
- InvalidPatternError: The pattern text was invalid.
Implementation
static OffsetPattern createWithCulture(String patternText, Culture culture) =>
_create(patternText, TimeMachineFormatInfo.getFormatInfo(culture));