Skip to content

cPeriod::SetLen()

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

Method SetLen( )

 public   mixed libdatephp\cPeriod::SetLen(integer $len)

SetLen() sets the ending date of the period of time

Example:

use libdatephp;

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

$p->SetLen( 14 );

Arguments

  • $len integer - <p>the new ending date of the period of time</p>

Clone this wiki locally