Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

enum NodaTime.​PeriodUnits

Assembly: NodaTime

The units within a <see cref="T:NodaTime.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.

Values

None
Value indicating no units - an empty period.
Years
Years element within a <see cref="T:NodaTime.Period" />
Months
Months element within a <see cref="T:NodaTime.Period" />
Weeks
Weeks element within a <see cref="T:NodaTime.Period" />
Days
Days element within a <see cref="T:NodaTime.Period" />
YearMonthDay
Compound value representing the combination of <see cref="F:NodaTime.PeriodUnits.Years" /> , <see cref="F:NodaTime.PeriodUnits.Months" /> and <see cref="F:NodaTime.PeriodUnits.Days" /> .
AllDateUnits
Compound value representing the combination of <see cref="F:NodaTime.PeriodUnits.Years" /> , <see cref="F:NodaTime.PeriodUnits.Months" /> , <see cref="F:NodaTime.PeriodUnits.Weeks" /> and <see cref="F:NodaTime.PeriodUnits.Days" /> .
Hours
Hours element within a <see cref="T:NodaTime.Period" />
Minutes
Minutes element within a <see cref="T:NodaTime.Period" />
Seconds
Seconds element within a <see cref="T:NodaTime.Period" />
HourMinuteSecond
Compound value representing the combination of <see cref="F:NodaTime.PeriodUnits.Hours" /> , <see cref="F:NodaTime.PeriodUnits.Minutes" /> and <see cref="F:NodaTime.PeriodUnits.Seconds" /> .
Milliseconds
Milliseconds element within a <see cref="T:NodaTime.Period" />
Ticks
Tick element within a <see cref="T:NodaTime.Period" />
Nanoseconds
Nanoseconds element within a <see cref="T:NodaTime.Period" /> .
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.