Skip to content

cDate::IsThursday()

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

Method IsThursday( )

 public   boolean libdatephp\cDate::IsThursday()

IsThursday() returns true, if the date is a thursday

Example:

$dt = new \libdatephp\cDate( 1, 1, 2017 );
assert( $dt->WOM( ) == 1 );
echo "\n wom = " . $dt->WOM();
$dt->GoWOM( 5 );
assert( $dt->WOM( ) == 5 );
$dt = new \libdatephp\cDate( 1, 1, 2017 );
$dt->GoWOM( 5, \libdatephp\cDate::DOW_THURSDAY );
assert( $dt->IsThursday( ) );
assert( $dt->eq( new \libdatephp\cDate( 2,2,2017) ) );

Returns

boolean true, if the date is a thursday

See also

Clone this wiki locally