C# Class NSoft.NFramework.TimePeriods.TimeRange

Inheritance: TimePeriodBase, ITimeRange
显示文件 Open project: debop/NFramework Class Usage Examples

Public Properties

Property Type Description
Anytime TimeRange

Public Methods

Method Description
ExpandEndTo ( System.DateTime moment ) : void

완료 시각을 지정된 시각으로 확장합니다. 완료 시각 이전이 되면 안됩니다.

ExpandStartTo ( System.DateTime moment ) : void

시작 시각을 지정된 시각으로 변경합니다. 시작 시각 이후가 되면 안됩니다.

ExpandTo ( System.DateTime moment ) : void

시작 시각과 완료시각을 지정된 시각으로 설정합니다.

ExpandTo ( ITimePeriod period ) : void

시작시각과 완료시각을 지정된 기간 정보를 기준으로 변경합니다.

GetIntersection ( ITimePeriod other ) : ITimeRange

두 기간의 겹치는 기간을 반환합니다.

GetUnion ( ITimePeriod other ) : ITimeRange

두 기간의 합집합 기간을 반환합니다.

ShrinkEndTo ( System.DateTime moment ) : void

완료 시각을 지정된 시각으로 당깁니다. 완료시각보다 이전 시각이여야 합니다.

ShrinkStartTo ( System.DateTime moment ) : void

시작 시각을 지정된 시각으로 변경합니다. 시작시각보다 이후 시각이여야 합니다.

ShrinkTo ( ITimePeriod period ) : void

기간을 지정한 기간으로 축소시킵니다.

TimeRange ( ) : System
TimeRange ( System.DateTime moment ) : System
TimeRange ( System.DateTime start, System.DateTime end ) : System
TimeRange ( System.DateTime start, System.DateTime end, bool isReadonly ) : System
TimeRange ( System.DateTime start, System.TimeSpan duration ) : System
TimeRange ( System.DateTime start, System.TimeSpan duration, bool isReadonly ) : System
TimeRange ( System.DateTime moment, bool isReadOnly ) : System
TimeRange ( ITimePeriod source ) : System
TimeRange ( ITimePeriod source, bool isReadonly ) : System
TimeRange ( bool isReadonly ) : System

Method Details

ExpandEndTo() public method

완료 시각을 지정된 시각으로 확장합니다. 완료 시각 이전이 되면 안됩니다.
public ExpandEndTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ExpandStartTo() public method

시작 시각을 지정된 시각으로 변경합니다. 시작 시각 이후가 되면 안됩니다.
public ExpandStartTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ExpandTo() public method

시작 시각과 완료시각을 지정된 시각으로 설정합니다.
public ExpandTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ExpandTo() public method

시작시각과 완료시각을 지정된 기간 정보를 기준으로 변경합니다.
public ExpandTo ( ITimePeriod period ) : void
period ITimePeriod
return void

GetIntersection() public method

두 기간의 겹치는 기간을 반환합니다.
public GetIntersection ( ITimePeriod other ) : ITimeRange
other ITimePeriod
return ITimeRange

GetUnion() public method

두 기간의 합집합 기간을 반환합니다.
public GetUnion ( ITimePeriod other ) : ITimeRange
other ITimePeriod
return ITimeRange

ShrinkEndTo() public method

완료 시각을 지정된 시각으로 당깁니다. 완료시각보다 이전 시각이여야 합니다.
public ShrinkEndTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ShrinkStartTo() public method

시작 시각을 지정된 시각으로 변경합니다. 시작시각보다 이후 시각이여야 합니다.
public ShrinkStartTo ( System.DateTime moment ) : void
moment System.DateTime
return void

ShrinkTo() public method

기간을 지정한 기간으로 축소시킵니다.
public ShrinkTo ( ITimePeriod period ) : void
period ITimePeriod
return void

TimeRange() public method

public TimeRange ( ) : System
return System

TimeRange() public method

public TimeRange ( System.DateTime moment ) : System
moment System.DateTime
return System

TimeRange() public method

public TimeRange ( System.DateTime start, System.DateTime end ) : System
start System.DateTime
end System.DateTime
return System

TimeRange() public method

public TimeRange ( System.DateTime start, System.DateTime end, bool isReadonly ) : System
start System.DateTime
end System.DateTime
isReadonly bool
return System

TimeRange() public method

public TimeRange ( System.DateTime start, System.TimeSpan duration ) : System
start System.DateTime
duration System.TimeSpan
return System

TimeRange() public method

public TimeRange ( System.DateTime start, System.TimeSpan duration, bool isReadonly ) : System
start System.DateTime
duration System.TimeSpan
isReadonly bool
return System

TimeRange() public method

public TimeRange ( System.DateTime moment, bool isReadOnly ) : System
moment System.DateTime
isReadOnly bool
return System

TimeRange() public method

public TimeRange ( ITimePeriod source ) : System
source ITimePeriod
return System

TimeRange() public method

public TimeRange ( ITimePeriod source, bool isReadonly ) : System
source ITimePeriod
isReadonly bool
return System

TimeRange() public method

public TimeRange ( bool isReadonly ) : System
isReadonly bool
return System

Property Details

Anytime public_oe static_oe property

시작 시각이 NULL, 완료 시각이 NULL인 OPEN 구간을 가지는 기간을 뜻한다. (그래서 AnyTime 이다)
public static TimeRange,NSoft.NFramework.TimePeriods Anytime
return TimeRange