Skip to content

cPeriod::IsValid()

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

Method IsValid( )

 public   Boolean libdatephp\cPeriod::IsValid()

IsValid() checks, whether the internal settings are valid

Example:

use libdatephp;

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

if ( $p->IsValid( ) ) do_something( );

Returns

Boolean true, if the internal settings of cPeriod are okay.

Clone this wiki locally