Skip to content

cDate::eq()

Rainer Stötter edited this page May 9, 2017 · 15 revisions

Method eq( )

 public   boolean libdatephp\cDate::eq(mixed $cmp)

eq() aka "equals" returns true, if the date is the same as the date in the parameter

Example:

use libdatephp;

$dt = new cDate( 11, 23, 2016 );

if ( $dt->eq( cDate( ) ) ) do_someting( );

Arguments

  • $cmp mixed - <p>timestamp or cDate</p>

Returns

boolean returns true, if both dates are equal

See also

Clone this wiki locally