Noda Time
OffsetPattern Class
NamespacesNodaTime.TextOffsetPattern

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

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



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

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.

Format(Offset)
Formats the given offset as text according to the rules of this pattern.

GeneralInvariantPattern
The "general" offset pattern (e.g. +HH, +HH:mm, +HH:mm:ss, +HH:mm:ss.fff) for the invariant culture.

GeneralInvariantPatternWithZ
The "general" offset pattern (e.g. +HH, +HH:mm, +HH:mm:ss, +HH:mm:ss.fff) for the invariant culture, but producing (and allowing) Z as a value for a zero offset.

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.

WithCulture(CultureInfo)
Creates a pattern for the same original pattern text as this pattern, but with the specified culture.

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
OffsetPattern

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