-
Notifications
You must be signed in to change notification settings - Fork 0
cPeriod::Adjust()
Rainer Stötter edited this page Apr 28, 2017
·
14 revisions
public mixed libdatephp\cPeriod::Adjust(mixed $p)
- Namespace : libdatephp
- Class name: cPeriod
- This method is defined by libdatephp\cPeriod
Adjust() sets the boundaries of $p
Example:
use libdatephp;
$p1 = new cPeriod( new cDate( 11, 23, 2016 ), new cDate( 11, 25, 2016 ) ); $p2 = new cPeriod( new cDate( 11, 24, 2016 ), new cDate( 11, 27, 2016 ) );
echo $p1->Adjust( $p2 );
- $p mixed - <p>the cDate or cPeriod where the new setting should be taken from</p>
This wiki page is part of the documentation of the PHP class library libdatephp