HandCoded.Finance.DateRoll.ModPreceding C# (CSharp) 메소드

ModPreceding() 개인적인 정적인 메소드

Adjusts a Date to the previous business day if it falls on a holiday unless that would move the date into the previous month in which case it is rolled to a following date.
private static ModPreceding ( Calendar calendar, Date date ) : Date
calendar Calendar The to be used.
date Date The to adjust.
리턴 Date
        private static Date ModPreceding(Calendar calendar, Date date)
        {
            Date			result = Preceding (calendar, date);

            if (date.Month != result.Month)
                result = Following (calendar, date);
            return (result);
        }