C# Class NSoft.NFramework.TimePeriods.TimeRange

Inheritance: TimePeriodBase, ITimeRange
Afficher le fichier Open project: debop/NFramework Class Usage Examples

Méthodes publiques

Свойство Type Description
Anytime TimeRange

Méthodes publiques

Méthode 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 méthode

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

ExpandStartTo() public méthode

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

ExpandTo() public méthode

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

ExpandTo() public méthode

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

GetIntersection() public méthode

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

GetUnion() public méthode

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

ShrinkEndTo() public méthode

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

ShrinkStartTo() public méthode

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

ShrinkTo() public méthode

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

TimeRange() public méthode

public TimeRange ( ) : System
Résultat System

TimeRange() public méthode

public TimeRange ( System.DateTime moment ) : System
moment System.DateTime
Résultat System

TimeRange() public méthode

public TimeRange ( System.DateTime start, System.DateTime end ) : System
start System.DateTime
end System.DateTime
Résultat System

TimeRange() public méthode

public TimeRange ( System.DateTime start, System.DateTime end, bool isReadonly ) : System
start System.DateTime
end System.DateTime
isReadonly bool
Résultat System

TimeRange() public méthode

public TimeRange ( System.DateTime start, System.TimeSpan duration ) : System
start System.DateTime
duration System.TimeSpan
Résultat System

TimeRange() public méthode

public TimeRange ( System.DateTime start, System.TimeSpan duration, bool isReadonly ) : System
start System.DateTime
duration System.TimeSpan
isReadonly bool
Résultat System

TimeRange() public méthode

public TimeRange ( System.DateTime moment, bool isReadOnly ) : System
moment System.DateTime
isReadOnly bool
Résultat System

TimeRange() public méthode

public TimeRange ( ITimePeriod source ) : System
source ITimePeriod
Résultat System

TimeRange() public méthode

public TimeRange ( ITimePeriod source, bool isReadonly ) : System
source ITimePeriod
isReadonly bool
Résultat System

TimeRange() public méthode

public TimeRange ( bool isReadonly ) : System
isReadonly bool
Résultat System

Property Details

Anytime public_oe static_oe property

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