public function getTimestamp($when)
    {
        Deprecated::method(3.3);

        $timezone = $this->get('general/timezone');
        $now = date_format(new \DateTime($when, new \DateTimeZone($timezone)), 'Y-m-d H:i:s');

        return $now;
    }
public function getTimestamp($when)
    {
        Deprecated::method(3.3);

        $timezone = $this->get('general/timezone');
        $now = date_format(new \DateTime($when, new \DateTimeZone($timezone)), 'Y-m-d H:i:s');

        return $now;
    }
public function getTimestamp ( $ when ) { Deprecated :: method ( 3.3 ) ; $ timezone = $ this -> get ( 'general/timezone' ) ; $ now = date_format ( new \ DateTime ( $ when , new \ DateTimeZone ( $ timezone ) ) , 'Y-m-d H:i:s' ) ; return $ now ; }
Get a timestamp, corrected to the timezone.

@param mixed $when

@return string Timestamp
Get a timestamp corrected to the timezone .