src/Webiny/AnalyticsDb/AnalyticsDb.php
public function setTimestamp($unixTs)
    {
        $this->ts = strtotime(date('Y-m-d', $unixTs));
        $this->month = date('n', $this->ts);
        $this->year = date('Y', $this->ts);
        $this->monthTs = strtotime(date('Y-m-01', $unixTs));
    }
public function setTimestamp($unixTs)
    {
        $this->ts = strtotime(date('Y-m-d', $unixTs));
        $this->month = date('n', $this->ts);
        $this->year = date('Y', $this->ts);
        $this->monthTs = strtotime(date('Y-m-01', $unixTs));
    }
public function setTimestamp ( $ unixTs ) { $ this -> ts = strtotime ( date ( 'Y-m-d' , $ unixTs ) ) ; $ this -> month = date ( 'n' , $ this -> ts ) ; $ this -> year = date ( 'Y' , $ this -> ts ) ; $ this -> monthTs = strtotime ( date ( 'Y-m-01' , $ unixTs ) ) ; }
Set the timestamp which will be used to store the data.
By default current time is used.

@param int $unixTs
Set the timestamp which will be used to store the data . By default current time is used .