Noda Time
CreateWithCurrentCulture Method (patternText)
NamespacesNodaTime.TextInstantPatternCreateWithCurrentCulture(String)

[This is preliminary documentation and is subject to change.]

Creates a pattern for the given pattern text in the current thread's current culture.
Declaration Syntax
C#Visual BasicVisual C++
public static InstantPattern CreateWithCurrentCulture(
	string patternText
)
Public Shared Function CreateWithCurrentCulture ( _
	patternText As String _
) As InstantPattern
public:
static InstantPattern^ CreateWithCurrentCulture(
	String^ patternText
)
Parameters
patternText (String)
Pattern text to create the pattern for
Return Value
A pattern for parsing and formatting instants.
Remarks
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.
Exceptions
ExceptionCondition
InvalidPatternExceptionThe pattern text was invalid.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)