System.Globalization.KoreanCalendar.AddMonths C# (CSharp) 메소드

AddMonths() 공개 메소드

public AddMonths ( System.DateTime time, int months ) : System.DateTime
time System.DateTime
months int
리턴 System.DateTime
        public override DateTime AddMonths(DateTime time, int months) {
            return (helper.AddMonths(time, months));
        }

Usage Example

예제 #1
0
 public void NegTest1()
 {
     System.Globalization.Calendar kC = new KoreanCalendar();
     DateTime actualValue;
     Assert.Throws<ArgumentOutOfRangeException>(() =>
     {
         actualValue = kC.AddMonths(new GregorianCalendar().ToDateTime(1, 1, 1, 0, 0, 0, 0), -1);
     });
 }
All Usage Examples Of System.Globalization.KoreanCalendar::AddMonths