[This is preliminary documentation and is subject to change.]
Represents a pattern for parsing and formatting LocalDateTime values.

C# | Visual Basic | Visual C++ |
public sealed class LocalDateTimePattern : IPattern<LocalDateTime>
Public NotInheritable Class LocalDateTimePattern _ Implements IPattern(Of LocalDateTime)
public ref class LocalDateTimePattern sealed : IPattern<LocalDateTime>

All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
![]() ![]() | Create(String, CultureInfo, LocalDateTime) |
Creates a pattern for the given pattern text, culture, and template value.
|
![]() ![]() | Create(String, CultureInfo) |
Creates a pattern for the given pattern text and culture, with a template value of midnight on 2000-01-01.
|
![]() ![]() | CreateWithCurrentCulture(String) |
Creates a pattern for the given pattern text in the current thread's current culture.
|
![]() ![]() | CreateWithInvariantCulture(String) |
Creates a pattern for the given pattern text in the invariant culture.
|
![]() ![]() | ExtendedIsoPattern |
Returns an invariant local date/time pattern which is ISO-8601 compatible, providing up to 7 decimal places
of sub-second accuracy. (These digits are omitted when unnecessary.)
This corresponds to the text pattern "yyyy'-'MM'-'dd'T'HH':'mm':'ss;FFFFFFF".
|
![]() | Format(LocalDateTime) |
Formats the given local date/time as text according to the rules of this pattern.
|
![]() | Parse(String) |
Parses the given text value according to the rules of this pattern.
|
![]() | PatternText |
Returns the pattern text for this pattern, as supplied on creation.
|
![]() | TemplateValue |
Returns the value used as a template for parsing: any field values unspecified
in the pattern are taken from the template.
|
![]() | WithCulture(CultureInfo) |
Creates a pattern for the same original pattern text as this pattern, but with the specified
culture.
|
![]() | WithTemplateValue(LocalDateTime) |
Creates a pattern like this one, but with the specified template value.
|

When used with a read-only CultureInfo, this type is immutable and instances
may be shared freely between threads. We recommend only using read-only cultures for patterns, although this is
not currently enforced.

Object | |
![]() | LocalDateTimePattern |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)