-
Notifications
You must be signed in to change notification settings - Fork 0
cPeriod::GetN()
Rainer Stötter edited this page Apr 28, 2017
·
14 revisions
public \libdatephp\cDate libdatephp\cPeriod::GetN(integer $n)
- Namespace : libdatephp
- Class name: cPeriod
- This method is defined by libdatephp\cPeriod
GetN() returns the n-th day of the managed period of time
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->GetN( 3 );
- $n integer - <p>the zero based index of the wanted day</p>
\libdatephp\cDate the nth day of the managed period of time
This wiki page is part of the documentation of the PHP class library libdatephp