Skip to content

cPeriod::Set()

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

Method Set( )

 public   mixed libdatephp\cPeriod::Set(\libdatephp\cDate $oFirst, \libdatephp\cDate $oLast)

Set() changes the values of the period of time

Example:

use libdatephp;

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

$p->Set( new cDate( 11, 23, 2017 ), new cDate( 11, 27, 2017 ) );

Arguments

Clone this wiki locally