[This is preliminary documentation and is subject to change.]
Represents a pattern for parsing and formatting ZonedDateTime values.
| C# | Visual Basic | Visual C++ |
public sealed class ZonedDateTimePattern : IPattern<ZonedDateTime>
Public NotInheritable Class ZonedDateTimePattern _ Implements IPattern(Of ZonedDateTime)
public ref class ZonedDateTimePattern sealed : IPattern<ZonedDateTime>
| All Members | Methods | Properties | |||
| Icon | Member | Description |
|---|---|---|
| Create(String, CultureInfo, ZoneLocalMappingResolver, IDateTimeZoneProvider, ZonedDateTime) |
Creates a pattern for the given pattern text, culture, resolver, time zone provider, and template value.
| |
| CreateWithInvariantCulture(String, IDateTimeZoneProvider) |
Creates a pattern for the given pattern text and time zone provider, using a strict resolver, the invariant
culture, and a default template value of midnight January 1st 2000 UTC.
| |
| Format(ZonedDateTime) |
Formats the given zoned 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.
| |
| Resolver |
Returns the resolver which is used to map local date/times to zoned date/times,
handling skipped and ambiguous times appropriately (where the offset isn't specified in the pattern).
| |
| 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.
| |
| WithPatternText(String) |
Creates a pattern for the same original localization information as this pattern, but with the specified
pattern text.
| |
| WithResolver(ZoneLocalMappingResolver) |
Creates a pattern for the same original pattern text as this pattern, but with the specified
resolver.
| |
| WithTemplateValue(ZonedDateTime) |
Creates a pattern like this one, but with the specified template value.
| |
| WithZoneProvider(IDateTimeZoneProvider) |
Creates a pattern for the same original pattern text as this pattern, but with the specified
time zone provider.
| |
| ZoneProvider |
Returns the provider which is used to look up time zones when parsing a pattern
which contains a time zone identifier.
|
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 | |
| ZonedDateTimePattern | |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)