Skip to content

cPeriod::NthWeek()

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

Method NthWeek( )

 public   integer libdatephp\cPeriod::NthWeek()

NthWeek() returns the number of the week 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->NthWeek( );

Returns

integer the number of full weeks

See also

Clone this wiki locally