Noda Time
OffsetDateTimePattern Class
NamespacesNodaTime.TextOffsetDateTimePattern

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

Represents a pattern for parsing and formatting OffsetDateTime values.
Declaration Syntax
C#Visual BasicVisual C++
public sealed class OffsetDateTimePattern : IPattern<OffsetDateTime>
Public NotInheritable Class OffsetDateTimePattern _
	Implements IPattern(Of OffsetDateTime)
public ref class OffsetDateTimePattern sealed : IPattern<OffsetDateTime>
Members
All MembersMethodsProperties



IconMemberDescription
Create(String, CultureInfo, OffsetDateTime)
Creates a pattern for the given pattern text, culture, and template value.

ExtendedIsoPattern
Returns an invariant local date/time pattern based on ISO-8601 including offset from UTC. The calendar system is not parsed or formatted as part of this pattern.

Format(OffsetDateTime)
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.

RoundtripWithCalendarPattern
Returns an invariant local date/time pattern based on ISO-8601 including offset from UTC and calendar ID.

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.

WithTemplateValue(OffsetDateTime)
Creates a pattern for the same original pattern text and culture as this pattern, but with the specified template value.

Thread Safety
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.
Inheritance Hierarchy
Object
OffsetDateTimePattern

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