public static CopticDate Next(this CopticDate date, DayOfWeek dayOfWeek)
 {
     return(date.AddDays((dayOfWeek < date.DayOfWeek ? 7 : 0) + dayOfWeek - date.DayOfWeek));
 }
Exemple #2
0
        public static object ParseNextDocScriptFunction(string code)
        {
            var Main = CSScript.CreateFunc <string>(code);

            return(Main(CopticDate.ToCopticDate(DateTime.Today), GetArgs(DateTime.Today)));
        }