Skip to content

cPeriod::GetLen()

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

Method GetLen( )

 public   integer libdatephp\cPeriod::GetLen()

GetLen() returns the days between the starting and the ending date The function returns 1, if both dates have the same date

Example:

use libdatephp;

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

echo $p->GetLen( );

Returns

integer the length of the period of time in days

See also

Clone this wiki locally