Class DatePeriodExtensions
Inheritance
DatePeriodExtensions
Assembly: PayrollEngine.Core.dll
Syntax
public static class DatePeriodExtensions
Methods
GetWorkingDaysCount(DatePeriod, IEnumerable<DayOfWeek>)
Declaration
public static int GetWorkingDaysCount(this DatePeriod period, IEnumerable<DayOfWeek> workingDays)
Parameters
Returns
Intersect(DatePeriod, DatePeriod)
Declaration
public static DatePeriod Intersect(this DatePeriod period, DatePeriod intersectPeriod)
Parameters
Returns
IsAfter(DatePeriod, DatePeriod)
Declaration
public static bool IsAfter(this DatePeriod period, DatePeriod testPeriod)
Parameters
Returns
IsAfter(DatePeriod, DateTime)
Declaration
public static bool IsAfter(this DatePeriod period, DateTime testMoment)
Parameters
Returns
IsBefore(DatePeriod, DatePeriod)
Declaration
public static bool IsBefore(this DatePeriod period, DatePeriod testPeriod)
Parameters
Returns
IsBefore(DatePeriod, DateTime)
Declaration
public static bool IsBefore(this DatePeriod period, DateTime testMoment)
Parameters
Returns
IsOverlapping(DatePeriod, DatePeriod)
Declaration
public static bool IsOverlapping(this DatePeriod period, DatePeriod testPeriod)
Parameters
Returns
IsWithin(DatePeriod, DatePeriod)
Declaration
public static bool IsWithin(this DatePeriod period, DatePeriod testPeriod)
Parameters
Returns
IsWithin(DatePeriod, DateTime)
Declaration
public static bool IsWithin(this DatePeriod period, DateTime testMoment)
Parameters
Returns
IsWithinOrAfter(DatePeriod, DateTime)
Declaration
public static bool IsWithinOrAfter(this DatePeriod period, DateTime testMoment)
Parameters
Returns
IsWithinOrBefore(DatePeriod, DateTime)
Declaration
public static bool IsWithinOrBefore(this DatePeriod period, DateTime testMoment)
Parameters
Returns
Split(DatePeriod, List<DateTime>)
Declaration
public static List<DatePeriod> Split(this DatePeriod period, List<DateTime> splitMoments)
Parameters
Returns