php / quarter / timestampConverter carimbo de data / hora em trimestre/** * Convert Timestamp to Quarter * @returns String 2013Q3 */function quarter($timestamp) { return date("YQ",$timestamp).ceil(date('n', $timestamp)/3);}