-
Notifications
You must be signed in to change notification settings - Fork 0
cDateISO::IsThursday()
Rainer Stötter edited this page May 9, 2017
·
1 revision
public boolean libdatephp\cDate::IsThursday()
- Namespace : libdatephp
- Class name: cDateISO
- This method is defined by libdatephp\cDate
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) ) );
boolean true, if the date is a thursday
This wiki page is part of the documentation of the PHP class library libdatephp