API Documentation

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

TypeName
DateTimestart
DateTimeend

DateTimeInterval(DateTime, TimeSpan)

public void DateTimeInterval(DateTime start, TimeSpan duration)

Result Type: void

Parameters

TypeName
DateTimestart
TimeSpanduration

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

TypeName
DateTimedt

Contains(DateTimeInterval)

public bool Contains(DateTimeInterval interval)

Result Type: bool

Parameters

TypeName
DateTimeIntervalinterval

Equals(DateTimeInterval)

public bool Equals(DateTimeInterval other)

Result Type: bool

Parameters

TypeName
DateTimeIntervalother

Equals(object)

public bool Equals(object obj)

Result Type: bool

Parameters

TypeName
objectobj

GetHashCode()

public int GetHashCode()

Result Type: int

Intersect(DateTimeInterval)

public DateTimeInterval Intersect(DateTimeInterval dt)

Result Type: DateTimeInterval

Parameters

TypeName
DateTimeIntervaldt

IntersectsWith(DateTimeInterval)

public bool IntersectsWith(DateTimeInterval interval)

Result Type: bool

Parameters

TypeName
DateTimeIntervalinterval

op_Equality(DateTimeInterval, DateTimeInterval)

public bool op_Equality(DateTimeInterval left, DateTimeInterval right)

Result Type: bool

Parameters

TypeName
DateTimeIntervalleft
DateTimeIntervalright

op_Inequality(DateTimeInterval, DateTimeInterval)

public bool op_Inequality(DateTimeInterval left, DateTimeInterval right)

Result Type: bool

Parameters

TypeName
DateTimeIntervalleft
DateTimeIntervalright

ToString()

public string ToString()

Result Type: string