Skip to content

Instantly share code, notes, and snippets.

@jetsuit
jetsuit / DateQuartersUtil.php
Last active February 5, 2021 14:41 — forked from steveirl/list_quarters.php
Get a list of (date) quarters between two given dates. Return array of objects with information about each quarter
/**
* Class DateQuartersUtil
* @package UtilsBundle\Classes
*/
class DateQuartersUtil
{
/**
* Return quarters between tow dates. Array of objects
* @param $start_date
* @param $end_date