Skip to content

cPeriod::SetFirst()

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

Method SetFirst( )

 public   mixed libdatephp\cPeriod::SetFirst(\libdatephp\cDate $oFirst)

SetFirst() sets the starting date of the period of time

Example:

use libdatephp;

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

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

Arguments

Clone this wiki locally