withCulture method

TimePattern withCulture(
  1. Culture culture
)

Creates a pattern for the same original pattern text as this pattern, but with the specified culture.

  • culture: The culture to use in the new pattern.

Returns: A new pattern with the given culture.

Implementation

TimePattern withCulture(Culture culture) =>
    _create(patternText, TimeMachineFormatInfo.getFormatInfo(culture));