Skip to content

cDate::WOM()

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

Method WOM( )

 public   integer libdatephp\cDate::WOM()

WOM() returns the one-based number of the week in the month the date belongs to.

Example:

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

Returns

integer the number of he week in the month

See also

Clone this wiki locally