DateTimeInterval
Namespace: TagBites.WinSchedulers
Assembly: TagBites.WinSchedulers.dll
public sealed struct DateTimeInterval : System.ValueType
Constructors
DateTimeInterval(DateTime, DateTime)
public void DateTimeInterval(DateTime start, DateTime end)
Result Type: void
Parameters
Type | Name | |
---|---|---|
DateTime | start | |
DateTime | end |
DateTimeInterval(DateTime, TimeSpan)
public void DateTimeInterval(DateTime start, TimeSpan duration)
Result Type: void
Parameters
Type | Name | |
---|---|---|
DateTime | start | |
TimeSpan | duration |
Fields
Empty
public DateTimeInterval Empty
Result Type: DateTimeInterval
Full
public DateTimeInterval Full
Result Type: DateTimeInterval
Properties
Duration
public TimeSpan Duration { get; }
Result Type: TimeSpan
End
public DateTime End { get; }
Result Type: DateTime
IntersectDaysCount
public int IntersectDaysCount { get; }
Result Type: int
IsEmpty
public bool IsEmpty { get; }
Result Type: bool
Middle
public DateTime Middle { get; }
Result Type: DateTime
Start
public DateTime Start { get; }
Result Type: DateTime
Methods
Contains(DateTime)
public bool Contains(DateTime dt)
Result Type: bool
Parameters
Type | Name | |
---|---|---|
DateTime | dt |
Contains(DateTimeInterval)
public bool Contains(DateTimeInterval interval)
Result Type: bool
Parameters
Type | Name | |
---|---|---|
DateTimeInterval | interval |
Equals(DateTimeInterval)
public bool Equals(DateTimeInterval other)
Result Type: bool
Parameters
Type | Name | |
---|---|---|
DateTimeInterval | other |
Equals(object)
public bool Equals(object obj)
Result Type: bool
Parameters
Type | Name | |
---|---|---|
object | obj |
GetHashCode()
public int GetHashCode()
Result Type: int
Intersect(DateTimeInterval)
public DateTimeInterval Intersect(DateTimeInterval dt)
Result Type: DateTimeInterval
Parameters
Type | Name | |
---|---|---|
DateTimeInterval | dt |
IntersectsWith(DateTimeInterval)
public bool IntersectsWith(DateTimeInterval interval)
Result Type: bool
Parameters
Type | Name | |
---|---|---|
DateTimeInterval | interval |
op_Equality(DateTimeInterval, DateTimeInterval)
public bool op_Equality(DateTimeInterval left, DateTimeInterval right)
Result Type: bool
Parameters
Type | Name | |
---|---|---|
DateTimeInterval | left | |
DateTimeInterval | right |
op_Inequality(DateTimeInterval, DateTimeInterval)
public bool op_Inequality(DateTimeInterval left, DateTimeInterval right)
Result Type: bool
Parameters
Type | Name | |
---|---|---|
DateTimeInterval | left | |
DateTimeInterval | right |
ToString()
public string ToString()
Result Type: string