[This is preliminary documentation and is subject to change.]
Creates a pattern for the given pattern text in the invariant culture.

C# | Visual Basic | Visual C++ |
public static OffsetPattern CreateWithInvariantCulture( string patternText )
Public Shared Function CreateWithInvariantCulture ( _ patternText As String _ ) As OffsetPattern
public: static OffsetPattern^ CreateWithInvariantCulture( String^ patternText )

- patternText (String)
- Pattern text to create the pattern for

A pattern for parsing and formatting offsets.

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.

Exception | Condition |
---|---|
InvalidPatternException | The pattern text was invalid. |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)