Skip to content

cDateISO::lt()

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

Method lt( )

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

lt() aka "less than" returns true, if the date is before the date $cmp

Example:

use libdatephp;

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

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

Arguments

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

Returns

boolean returns true, if the managed date comes before $cmp

See also

Clone this wiki locally