public static PersianDateTime AddWeeks(this PersianDateTime persianDateTime, int weeks) { var dateTime = PersianCalendar.AddWeeks(persianDateTime.DateTime, weeks); persianDateTime.DateTime = dateTime; return(new PersianDateTime(dateTime)); }
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))); }