Skip to content

cDate::ge()

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

Method ge( )

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

ge() aka "greater equal" returns true, if the date is the same as $cmp or comes after $cmp

Example:

use libdatephp;

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

if ( $dt->ge( 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 after $cmp

See also

Clone this wiki locally