Skip to content

cPeriod::Dec()

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

Method Dec( )

 public   mixed libdatephp\cPeriod::Dec()

Dec() decreases the boundaries for 1 day. Starting date and ending date are moved

Example:

use libdatephp;

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

echo $p1->Dec( );

Clone this wiki locally