-
Notifications
You must be signed in to change notification settings - Fork 0
cPeriod::AddMonths()
Rainer Stötter edited this page Apr 28, 2017
·
14 revisions
public mixed libdatephp\cPeriod::AddMonths(integer $i)
- Namespace : libdatephp
- Class name: cPeriod
- This method is defined by libdatephp\cPeriod
AddMonths() adds $i months to the boundaries. Starting date and ending date are moved
Example:
use libdatephp;
$p1 = new cPeriod( new cDate( 11, 23, 2016 ), new cDate( 11, 25, 2016 ) );
echo $p1->AddMonths( 3 );
- $i integer - <p>how much months the managed period of time should be moved, can be negative. $i defaults to 1</p>
This wiki page is part of the documentation of the PHP class library libdatephp