From 66fc807b93c3d2c29f6397ff6d5c9929431ace7d Mon Sep 17 00:00:00 2001 From: gwoo Date: Mon, 24 Dec 2007 02:18:00 +0000 Subject: [PATCH] note to self, remember to make a diff first git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6238 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/time.php | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/cake/libs/view/helpers/time.php b/cake/libs/view/helpers/time.php index d6ffb1cc3..749ee4b7c 100644 --- a/cake/libs/view/helpers/time.php +++ b/cake/libs/view/helpers/time.php @@ -435,37 +435,6 @@ class TimeHelper extends AppHelper { $return = gmmktime($hour, $minute, $second, $month, $day, $year); return $return; } -/** - * Returns a UNIX timestamp, given either a UNIX timestamp or a valid strtotime() date string. - * - * @param string $date_string Datetime string - * @return string Formatted date string - */ - function getQuarterRange($date_string = null) { - if ($date_string == null) { - $date_string = time(); - } - - $year = $this->format('Y', $date_string); - $q = $this->toQuarter($date_string); - - switch ($q) { - case 1: - $ret = array($year.'-01-01', $year.'-03-31'); - break; - case 2: - $ret = array($year.'-04-01', $year.'-06-30'); - break; - case 3: - $ret = array($year.'-07-01', $year.'-09-30'); - break; - case 4: - $ret = array($year.'-10-01', $year.'-12-31'); - break; - } - - return $this->output($ret); - } /** * Returns a UNIX timestamp, given either a UNIX timestamp or a valid strtotime() date string. *