Click or drag to resize
DateTimeInterval Methods

The DateTimeInterval type exposes the following members.

Methods
  NameDescription
Public methodStatic memberConvertToTimeSpan
Converts the given DateTimeInterval to TimeSpan.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(DateTimeInterval)
Indicates whether this instance and a specified DateTimeInterval are equal.
Public methodStatic memberFromDays
Creates a new DateTimeInterval initializing it with given days.
Public methodStatic memberFromMonths
Creates a new DateTimeInterval initializing it with given months.
Public methodGetApproximateTotalDays
Gets the approximate total days count for the specified calendar. Uses Today's year for the calculate.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberParse
Constructs a new DateTimeInterval object from a string. The string should be in format like this: 12d 12m.
Public methodStatic memberTryParse
Constructs a new DateTimeInterval object from a string. The string should be in format like this: 12d 12m.
Top
See Also