示例#1
0
        public static PersianDateTime AddWeeks(this PersianDateTime persianDateTime, int weeks)
        {
            var dateTime = PersianCalendar.AddWeeks(persianDateTime.DateTime, weeks);

            persianDateTime.DateTime = dateTime;
            return(new PersianDateTime(dateTime));
        }
示例#2
0
文件: Date.cs 项目: sasiit23/smah1
        public Date AddWeeks(int weeks)
        {
            if (IsEmpty(this))
            {
                throw new ArgumentException("Date is empty!");
            }

            return(new Date(PersianCalendar.AddWeeks(dateGregorian, weeks)));
        }
 public PersianDateTime AddWeeks(int week)
 {
     return(new PersianDateTime(persianCalendar.AddWeeks(this.dateTime, week)));
 }