Calculations with diference between workdays and hollydays and weekends. It
would be great if it could be used in a Fluent Interface Way Such as.
var hollydays = new List<Date>();
hollydays.Add(new HollyDay(1900,12,25, "Christmas"))
hollydays.Add(new HollyDay(1900,1,1, "New Years"))
// returns a integer with number of workdays between one date and another
Calendar.Hollydays(hollidays).DaysBetween (new Date(2010, 12, 01),new
Date(2011, 01,15)).Workdays
// returns a integer with number of current days between one date and another
Calendar.Hollydays(hollidays).DaysBetween (new Date(2010, 12, 01),new
Date(2011, 01,15)).AnyDays
// returns a integer with number of weekends and hollydays days between one
date and another
Calendar.Hollydays(hollidays).DaysBetween (new Date(2010, 12, 01),new
Date(2011, 01,15)).NotBusinessDays
Calculate number os days in a particular way such as:
//Next day 20 workdays from now
Calendar.Hollydays(hollidays).DateFrom (new Date(2010, 12, 01),20).Workdays
//Next day 20 current days from now
Calendar.Hollydays(hollidays).DateFrom (new Date(2010, 12, 01),20).AnyDays
//Next day 20 not business days from now.
Calendar.Hollydays(hollidays).DateFrom (new Date(2010, 12,
01),20).NotBusinessDays
It would be great if you could configure hollydays on the app.config and maybe
on databases.