Skip to content

cPeriod::SetToday()

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

Method SetToday( )

 public   mixed libdatephp\cPeriod::SetToday()

SetToday() sets the starting and the ending date of the period of time to the actual dae

Example:

use libdatephp;

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

echo $p->SetToday( );

Clone this wiki locally