Exemplo n.º 1
0
        ///-------------------------------------------------------------------------------------------------
        /// <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);
        }