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

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