-
Notifications
You must be signed in to change notification settings - Fork 0
cPeriod::GetDiff()
Rainer Stötter edited this page Apr 28, 2017
·
9 revisions
public integer libdatephp\cPeriod::GetDiff()
- Namespace : libdatephp
- Class name: cPeriod
- This method is defined by libdatephp\cPeriod
GetDiff() returns the difference between the starting and the ending date The function returns 0, if both dates have the same date
Example:
use libdatephp;
$p = new cPeriod( new cDate( 11, 23, 2016 ), new cDate( 11, 25, 2016 ) );
echo $p->GetDiff( );
integer the difference of the period of time in days
This wiki page is part of the documentation of the PHP class library libdatephp