Skip to content

cPeriod::NthMonth()

Rainer Stötter edited this page May 9, 2017 · 10 revisions

Method NthMonth( )

 public   integer libdatephp\cPeriod::NthMonth()

NthMonth() returns the number of the month the ending date is calculated from the beginning of the period of time

Example:

use libdatephp;

$p1 = new cPeriod( new cDate( 11, 23, 2016 ), new cDate( 11, 25, 2016 ) );

echo $p1->NthMonth( );

Returns

integer the number of full months

See also

Clone this wiki locally