Skip to content

cDate::Quarter()

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

Method Quarter( )

 public   integer libdatephp\cDate::Quarter()

Quarter() returns the quarter of the year the date belongs to. Same as NOQ( )

Example:

use libdatephp;

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

echo $dt->Quarter( );

Returns

integer the number of he quarter

See also

Clone this wiki locally