Skip to content

cPeriod::Adjust()

Rainer Stötter edited this page Apr 28, 2017 · 14 revisions

Method Adjust( )

 public   mixed libdatephp\cPeriod::Adjust(mixed $p)

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 );

Arguments

  • $p mixed - <p>the cDate or cPeriod where the new setting should be taken from</p>

Clone this wiki locally