Skip to content

cDateISO::le()

Rainer Stötter edited this page May 9, 2017 · 1 revision

Method le( )

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

le() aka "lesser equal" returns true, if the date is the same as $cmp or comes before $cmp

Example:

use libdatephp;

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

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

Arguments

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

Returns

boolean returns true, if the managed date is the same as $cmp or comes before $cmp

See also

Clone this wiki locally