C# Class Itenso.TimePeriodDemo.ArticleSamples

Show file Open project: jwg4/date-difference

Public Methods

Method Description
FindLargestFreeTimeBlock ( IEnumerable reservations, ITimePeriod searchLimits = null, bool excludeWeekends = true ) : ICalendarTimeRange
GetDaysOfPastQuarter ( System.DateTime moment, System.DateTime &firstDay, System.DateTime &lastDay ) : void
GetFirstDayOfWeek ( System.DateTime moment ) : System.DateTime
IntersectsYear ( System.DateTime start, System.DateTime end, int year ) : bool
IsInCurrentWeek ( System.DateTime test ) : bool
IsValidReservation ( System.DateTime start, System.DateTime end ) : bool

Private Methods

Method Description
CalendarDateAddSample ( ) : void
CalendarPeriodCollectorSample ( ) : void
CalendarWeekSample ( ) : void
CalendarYearTimePeriodsSample ( ) : void
DateAddSample ( ) : void
DateDiffSample ( ) : void
DaySeekerSample ( ) : void
FiscalYearSample ( ) : void
FiscalYearTimePeriodsSample ( ) : void
TimeBlockSample ( ) : void
TimeGapCalculatorSample ( ) : void
TimeIntervalSample ( ) : void
TimePeriodChainSample ( ) : void
TimePeriodCollectionSample ( ) : void
TimePeriodCombinerSample ( ) : void
TimePeriodIntersectorSample ( ) : void
TimePeriodMapperSample ( ) : void
TimeRangeSample ( ) : void
YearQuartersSample ( ) : void
YearStartSample ( ) : void

Method Details

FindLargestFreeTimeBlock() public method

public FindLargestFreeTimeBlock ( IEnumerable reservations, ITimePeriod searchLimits = null, bool excludeWeekends = true ) : ICalendarTimeRange
reservations IEnumerable
searchLimits ITimePeriod
excludeWeekends bool
return ICalendarTimeRange

GetDaysOfPastQuarter() public method

public GetDaysOfPastQuarter ( System.DateTime moment, System.DateTime &firstDay, System.DateTime &lastDay ) : void
moment System.DateTime
firstDay System.DateTime
lastDay System.DateTime
return void

GetFirstDayOfWeek() public method

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

IntersectsYear() public method

public IntersectsYear ( System.DateTime start, System.DateTime end, int year ) : bool
start System.DateTime
end System.DateTime
year int
return bool

IsInCurrentWeek() public method

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

IsValidReservation() public method

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