createWithCurrentCulture static method

LocalDateTimePattern createWithCurrentCulture(
  1. String patternText
)

Creates a pattern for the given pattern text in the current thread's current culture.

See the user guide for the available pattern text options. Note that the current culture is captured at the time this method is called - it is not captured at the point of parsing or formatting values.

  • patternText: Pattern text to create the pattern for

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

Implementation

static LocalDateTimePattern createWithCurrentCulture(String patternText) =>
    _create(patternText, TimeMachineFormatInfo.currentInfo, LocalDateTimePatterns.defaultTemplateValue);