DateInterval MembersNoda Time

[This is preliminary documentation and is subject to change.]

The DateInterval type exposes the following members.

Public methodDateInterval(LocalDate, LocalDate)
Constructs a date interval from a start date and an inclusive end date.
Public methodDateInterval(LocalDate, LocalDate, Boolean)
Constructs a date interval from a start date and an end date, and an indication of whether the end date should be included in the interval.
Back to Top

Public methodContains
Checks whether the given date is within this date interval. This requires that the date is not earlier than the start date, and not later than the end date. If the given date is exactly equal to the end date, it is considered to be within the interval if and only if the interval is Inclusive.
Public methodEquals(Object)
Compares the given object for equality with this one, as per Equals(DateInterval).
(Overrides OnlineObject Equals(Object).)
Public methodEquals(DateInterval)
Compares the given date interval for equality with this one.
Public methodGetHashCode
Returns the hash code for this interval, consistent with Equals(DateInterval).
(Overrides OnlineObject GetHashCode .)
Public methodToString
Returns a string representation of this interval.
(Overrides OnlineObject ToString .)
Back to Top

Public operatorStatic memberEquality
Compares two DateInterval values for equality.
Public operatorStatic memberInequality
Compares two DateInterval values for inequality.
Back to Top

Public propertyEnd
Gets the end date of the interval.
Public propertyInclusive
Indicates whether or not this interval includes its end date.
Public propertyLength
Gets the length of this date interval in days.
Public propertyStart
Gets the start date of the interval, which is always included in the interval.
Back to Top
See Also