Enum SqlIntervalUnit
Unit an interval operation is expressed in.
public enum SqlIntervalUnit
- Extension Methods
Fields
Day = 7Days. Exactly 24 hours within Duration.
Hour = 6Hours.
Microsecond = 2Microseconds.
Millisecond = 3Milliseconds.
Minute = 5Minutes.
Month = 9Calendar months. Valid only within Calendar.
Nanosecond = 0Nanoseconds.
Quarter = 10Calendar quarters. Valid only within Calendar.
Second = 4Seconds.
Tick = 1100-nanosecond units, matching Ticks.
Week = 8Weeks. Exactly 7 days within Duration.
Year = 11Calendar years. Valid only within Calendar.
Remarks
This is a unit, not a type: it says what an amount is counted in, and says nothing about whether the interval is a fixed duration or a calendar interval - that is SqlIntervalDomain. The calendar units at the end of the list are only valid within Calendar.
Members are ordered from the finest unit to the coarsest, but no arithmetic meaning is attached to the underlying values - do not compare them to decide which unit is finer.