C# Class Itenso.TimePeriod.TimeBlock

Inheritance: ITimeBlock
Datei anzeigen Open project: jwg4/date-difference Class Usage Examples

Public Properties

Property Type Description
Anytime TimeBlock

Public Methods

Method Description
Copy ( ) : ITimeBlock
Copy ( System.TimeSpan offset ) : ITimeBlock
DurationFromEnd ( System.TimeSpan newDuration ) : void
DurationFromStart ( System.TimeSpan newDuration ) : void
Equals ( object obj ) : bool
GetDescription ( ITimeFormatter formatter = null ) : string
GetHashCode ( ) : int
GetIntersection ( ITimePeriod period ) : ITimeBlock
GetNextPeriod ( ) : ITimeBlock
GetNextPeriod ( System.TimeSpan offset ) : ITimeBlock
GetPreviousPeriod ( ) : ITimeBlock
GetPreviousPeriod ( System.TimeSpan offset ) : ITimeBlock
GetRelation ( ITimePeriod test ) : PeriodRelation
HasInside ( System.DateTime test ) : bool
HasInside ( ITimePeriod test ) : bool
IntersectsWith ( ITimePeriod test ) : bool
IsSamePeriod ( ITimePeriod test ) : bool
Move ( System.TimeSpan offset ) : void
OverlapsWith ( ITimePeriod test ) : bool
Reset ( ) : void
Setup ( System.DateTime newStart, System.DateTime newEnd ) : void
Setup ( System.DateTime newStart, System.TimeSpan newDuration ) : void
TimeBlock ( ) : System
TimeBlock ( System.DateTime start, System.DateTime end, bool isReadOnly = false ) : System
TimeBlock ( System.DateTime start, System.TimeSpan duration, bool isReadOnly = false ) : System
TimeBlock ( System.DateTime moment, bool isReadOnly = false ) : System
TimeBlock ( ITimePeriod copy ) : System
TimeBlock ( System.TimeSpan duration, System.DateTime end, bool isReadOnly = false ) : System
ToString ( ) : string

Protected Methods

Method Description
CheckModification ( ) : void
ComputeHashCode ( ) : int
Format ( ITimeFormatter formatter ) : string
IsEqual ( object obj ) : bool
TimeBlock ( ITimePeriod copy, bool isReadOnly ) : System

Private Methods

Method Description
HasSameData ( TimeBlock comp ) : bool
TimeBlock ( bool isReadOnly = false ) : System

Method Details

CheckModification() protected method

protected CheckModification ( ) : void
return void

ComputeHashCode() protected method

protected ComputeHashCode ( ) : int
return int

Copy() public method

public Copy ( ) : ITimeBlock
return ITimeBlock

Copy() public method

public Copy ( System.TimeSpan offset ) : ITimeBlock
offset System.TimeSpan
return ITimeBlock

DurationFromEnd() public method

public DurationFromEnd ( System.TimeSpan newDuration ) : void
newDuration System.TimeSpan
return void

DurationFromStart() public method

public DurationFromStart ( System.TimeSpan newDuration ) : void
newDuration System.TimeSpan
return void

Equals() public final method

public final Equals ( object obj ) : bool
obj object
return bool

Format() protected method

protected Format ( ITimeFormatter formatter ) : string
formatter ITimeFormatter
return string

GetDescription() public method

public GetDescription ( ITimeFormatter formatter = null ) : string
formatter ITimeFormatter
return string

GetHashCode() public final method

public final GetHashCode ( ) : int
return int

GetIntersection() public method

public GetIntersection ( ITimePeriod period ) : ITimeBlock
period ITimePeriod
return ITimeBlock

GetNextPeriod() public method

public GetNextPeriod ( ) : ITimeBlock
return ITimeBlock

GetNextPeriod() public method

public GetNextPeriod ( System.TimeSpan offset ) : ITimeBlock
offset System.TimeSpan
return ITimeBlock

GetPreviousPeriod() public method

public GetPreviousPeriod ( ) : ITimeBlock
return ITimeBlock

GetPreviousPeriod() public method

public GetPreviousPeriod ( System.TimeSpan offset ) : ITimeBlock
offset System.TimeSpan
return ITimeBlock

GetRelation() public method

public GetRelation ( ITimePeriod test ) : PeriodRelation
test ITimePeriod
return PeriodRelation

HasInside() public method

public HasInside ( System.DateTime test ) : bool
test System.DateTime
return bool

HasInside() public method

public HasInside ( ITimePeriod test ) : bool
test ITimePeriod
return bool

IntersectsWith() public method

public IntersectsWith ( ITimePeriod test ) : bool
test ITimePeriod
return bool

IsEqual() protected method

protected IsEqual ( object obj ) : bool
obj object
return bool

IsSamePeriod() public method

public IsSamePeriod ( ITimePeriod test ) : bool
test ITimePeriod
return bool

Move() public method

public Move ( System.TimeSpan offset ) : void
offset System.TimeSpan
return void

OverlapsWith() public method

public OverlapsWith ( ITimePeriod test ) : bool
test ITimePeriod
return bool

Reset() public method

public Reset ( ) : void
return void

Setup() public method

public Setup ( System.DateTime newStart, System.DateTime newEnd ) : void
newStart System.DateTime
newEnd System.DateTime
return void

Setup() public method

public Setup ( System.DateTime newStart, System.TimeSpan newDuration ) : void
newStart System.DateTime
newDuration System.TimeSpan
return void

TimeBlock() public method

public TimeBlock ( ) : System
return System

TimeBlock() public method

public TimeBlock ( System.DateTime start, System.DateTime end, bool isReadOnly = false ) : System
start System.DateTime
end System.DateTime
isReadOnly bool
return System

TimeBlock() public method

public TimeBlock ( System.DateTime start, System.TimeSpan duration, bool isReadOnly = false ) : System
start System.DateTime
duration System.TimeSpan
isReadOnly bool
return System

TimeBlock() public method

public TimeBlock ( System.DateTime moment, bool isReadOnly = false ) : System
moment System.DateTime
isReadOnly bool
return System

TimeBlock() public method

public TimeBlock ( ITimePeriod copy ) : System
copy ITimePeriod
return System

TimeBlock() protected method

protected TimeBlock ( ITimePeriod copy, bool isReadOnly ) : System
copy ITimePeriod
isReadOnly bool
return System

TimeBlock() public method

public TimeBlock ( System.TimeSpan duration, System.DateTime end, bool isReadOnly = false ) : System
duration System.TimeSpan
end System.DateTime
isReadOnly bool
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

Anytime public_oe static_oe property

public static TimeBlock,Itenso.TimePeriod Anytime
return TimeBlock