[This is preliminary documentation and is subject to change.]
Represents a pattern for parsing and formatting Instant values.
| All Members | Methods | Properties | |||
| Icon | Member | Description |
|---|---|---|
| Create(String, CultureInfo) |
Creates a pattern for the given pattern text and culture.
| |
| CreateNumericPattern(CultureInfo, Boolean) |
Creates a "numeric" pattern for the given culture. The numeric format gives the
number of ticks in decimal format, with or without thousands separators.
| |
| 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 instant 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;Z'".
| |
| Format(Instant) |
Formats the given instant as text according to the rules of this pattern.
| |
| GeneralPattern |
Returns the general pattern, which always uses an invariant culture. The general pattern represents
an instant as a UTC date/time in ISO-8601 style "yyyy-MM-ddTHH:mm:ssZ".
| |
| 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.
|
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 | |
| InstantPattern | |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)