summaryrefslogtreecommitdiffstats
path: root/modules/statistics/lib/DateHandlerMonth.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/statistics/lib/DateHandlerMonth.php')
-rw-r--r--modules/statistics/lib/DateHandlerMonth.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/modules/statistics/lib/DateHandlerMonth.php b/modules/statistics/lib/DateHandlerMonth.php
index 5520a6a..c7f0fae 100644
--- a/modules/statistics/lib/DateHandlerMonth.php
+++ b/modules/statistics/lib/DateHandlerMonth.php
@@ -5,8 +5,6 @@
*/
class sspmod_statistics_DateHandlerMonth extends sspmod_statistics_DateHandler {
-
-
/**
* Constructor
*
@@ -19,10 +17,8 @@ class sspmod_statistics_DateHandlerMonth extends sspmod_statistics_DateHandler {
public function toSlot($epoch, $slotsize) {
$dsttime = $this->getDST($epoch) + $epoch;
- $parsed = getdate($dsttime);
- // print_r($parsed);
+ $parsed = getdate($dsttime);
$slot = (($parsed['year'] - 2000) * 12) + $parsed['mon'] - 1;
- // echo('converting ' . $epoch . ' to ' . $slot ); exit;
return $slot;
}
@@ -32,7 +28,6 @@ class sspmod_statistics_DateHandlerMonth extends sspmod_statistics_DateHandler {
$year = 2000 + floor($slot / 12);
$epoch = mktime(0, 0, 0, $month + 1, 1, $year, FALSE);
- // echo('epoch ' . $epoch . ' from slot '. $slot . " year " . $year . " month " . $month . "\n");
return $epoch;
}
@@ -43,17 +38,4 @@ class sspmod_statistics_DateHandlerMonth extends sspmod_statistics_DateHandler {
return $year . '-' . $month;
}
-
-
}
-
-// $datestr = substr($logline,0,$datenumbers);
-// #$datestr = substr($logline,0,23);
-// $timestamp = parse15($datestr) + $offset;
-// $restofline = substr($logline,$datenumbers+1);
-// $restcols = split(' ', $restofline);
-// $action = $restcols[5];
-
-// print_r($timestamp);
-// print_r($restcols); if ($i++ > 5) exit;
-