예제 #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)));
        }
예제 #3
0
 public PersianDateTime AddWeeks(int week)
 {
     return(new PersianDateTime(persianCalendar.AddWeeks(this.dateTime, week)));
 }