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


All Members | Methods | Fields | |||
Icon | Member | Description |
---|---|---|
![]() | Format(Period) |
Formats the given period as text according to the rules of this pattern.
|
![]() ![]() | NormalizingIsoPattern |
A "normalizing" pattern which abides by the ISO-8601 duration format as far as possible.
Weeks are added to the number of days (after multiplying by 7). Time units are normalized
(extending into days where necessary), and fractions of seconds are represented within the
seconds part. Unlike ISO-8601, which pattern allows for negative values within a period.
|
![]() | Parse(String) |
Parses the given text value according to the rules of this pattern.
|
![]() ![]() | RoundtripPattern |
Pattern which uses the normal ISO format for all the supported ISO
fields, but extends the time part with "s" for milliseconds and "t" for ticks.
No normalization is carried out, and a period may contain weeks as well as years, months and days.
Each element may also be negative, independently of other elements. This pattern round-trips its
values: a parse/format cycle will produce an identical period, including units.
|

This type is immutable reference type. See the thread safety section of the user guide for more information.

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