[This is preliminary documentation and is subject to change.]
The units within a Period. When a period is created to find the difference between two local values,
the caller may specify which units are required - for example, you can ask for the difference between two dates
in "years and weeks". Units are always applied largest-first in arithmetic.
| C# | Visual Basic | Visual C++ |
[FlagsAttribute] public enum PeriodUnits
<FlagsAttribute> _ Public Enumeration PeriodUnits
[FlagsAttribute] public enum class PeriodUnits
| Member | Description |
|---|---|
| None |
Value indicating no units - an empty period.
|
| Years |
Years element within a Period |
| Months |
Months element within a Period |
| Weeks |
Weeks element within a Period |
| Days |
Days element within a Period |
| AllDateUnits |
Compound value representing the combination of Years, Months, Weeks and Days.
|
| YearMonthDay |
Compound value representing the combination of Years, Months and Days.
|
| Hours |
Hours element within a Period |
| Minutes |
Minutes element within a Period |
| Seconds |
Seconds element within a Period |
| Milliseconds |
Milliseconds element within a Period |
| Ticks |
Tick element within a Period |
| HourMinuteSecond |
Compound value representing the combination of Hours, Minutes and Seconds.
|
| AllTimeUnits |
Compound value representing the combination of all time elements.
|
| DateAndTime |
Compound value representing the combination of all possible elements except weeks.
|
| AllUnits |
Compound value representing the combination of all possible elements.
|
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)