///------------------------------------------------------------------------------------------------- /// <summary> /// USA Federal Government event calendar. All non work days. New Years, Martin Luther King, /// presidents day, Memorial Day, Independence Day, Labor Day, Columbus Day, Veterans Day, /// Thanksgiving Day, Christmas, Saturdays, Sundays. /// </summary> /// /// <example> /// <code> /// // using ThisDate.DefinedCalendars.USA; /// Calendars.UsaFederal(); /// </code> /// </example> ///------------------------------------------------------------------------------------------------- public static void UsaFederal() { Holidays.NewYearsDay(true, false, true); Holidays.MartinLutherKingDay(true); Holidays.PresidentsDay(true); Holidays.MemorialDay(true); Holidays.IndependenceDay(true, true, true); Holidays.LaborDay(true); Holidays.ColumbusDay(true); Holidays.VeteransDay(true, true, true); Holidays.ThanksgivingDay(true); Holidays.ChristmasDay(true, true, true); Holidays.Weekends(); }
///------------------------------------------------------------------------------------------------- /// <summary> /// USA full observance calendar with typical workday configurations. Includes USA Federal /// plus and Groundhog day, Mothers day, Fathers Day, Good Friday, Easter Sunday, Halloween, /// Saint Patrick's Day. /// </summary> /// /// <example> /// <code> /// // using ThisDate.DefinedCalendars.USA; /// Calendars.UsaObservance(); /// </code> /// </example> ///------------------------------------------------------------------------------------------------- public static void UsaObservance() { Holidays.NewYearsDay(true, false, true); Holidays.MartinLutherKingDay(true); Holidays.PresidentsDay(true); Holidays.MemorialDay(true); Holidays.IndependenceDay(true, true, true); Holidays.LaborDay(true); Holidays.ColumbusDay(false); Holidays.VeteransDay(false, true, true); Holidays.ThanksgivingDay(true); Holidays.ChristmasDay(true, true, true); Holidays.Weekends(); Holidays.ValentinesDay(false); Holidays.MothersDay(false); Holidays.FathersDay(false); Holidays.GoodFriday(false); Holidays.EasterSunday(false); Holidays.GroundhogDay(false); Holidays.Halloween(false); Holidays.SaintPatrickDay(false); }