public function __construct($stats)
 {
     parent::__construct($stats);
     $this->time_start = new \DateTime();
     $this->time_start->setTime($stats->hourOfDay, 0, 0);
     $this->time_end = new \DateTime();
     $this->time_end->setTime($stats->hourOfDay, 0, 0);
 }
 public function __construct($stats)
 {
     parent::__construct($stats);
     $this->time_start = new \DateTime($stats->month);
     $this->time_start->setDate($this->time_start->format('Y'), $this->time_start->format('m'), 1);
     $this->time_end = new \DateTime($stats->month);
     $this->time_end->setDate($this->time_end->format('Y'), $this->time_end->format('m'), $this->time_end->format('t'));
 }
 public function __construct($stats)
 {
     parent::__construct($stats);
     $this->time_start = new \DateTime($stats->day);
     $this->time_end = new \DateTime($stats->day);
 }