vlibDate

vLIB logo

6.23. quarterOfYear()

Function Description
  quarterOfYear (string timestamp)

Returns quarter of the year for given timestamp.

The timestamp parameter is a vlibDate timestamp. For more information, please see the IMPORTANT section.

Example

   echo "we're currently in quarter number ".$date->quarterOfYear($date->now());