-
Notifications
You must be signed in to change notification settings - Fork 0
cPeriod::Overlaps()
Rainer Stötter edited this page Apr 28, 2017
·
14 revisions
public boolean libdatephp\cPeriod::Overlaps(mixed $obj)
- Namespace : libdatephp
- Class name: cPeriod
- This method is defined by libdatephp\cPeriod
Overlaps() returns true, if $obj overlaps of the managed period of time. Overlapping means, that a part of $obj lies within the boundaries of the managed period of time
Example:
use libdatephp;
$p1 = new cPeriod( new cDate( 11, 23, 2016 ), new cDate( 11, 25, 2016 ) ); $p2 = new cPeriod( new cDate( 11, 24, 2016 ), new cDate( 11, 27, 2016 ) );
if ( $p1->Overlaps( $p2 ) ) do_something( );
- $obj mixed - <p>the other period of time or a cDate</p>
boolean true if the managed period overlaps $obj
This wiki page is part of the documentation of the PHP class library libdatephp