private function getCronTimestamp()
    {
        /* @var $version string e.g. "2.1.7" */
        $version = $this->productMetadata->getVersion();
        if (version_compare($version, '2.2.0') >= 0) {
            return $this->dateTime->gmtTimestamp();
        }
        return $this->timezone->scopeTimeStamp();
    }
private function getCronTimestamp()
    {
        /* @var $version string e.g. "2.1.7" */
        $version = $this->productMetadata->getVersion();
        if (version_compare($version, '2.2.0') >= 0) {
            return $this->dateTime->gmtTimestamp();
        }
        return $this->timezone->scopeTimeStamp();
    }
private function getCronTimestamp ( ) { /* @var $version string e.g. "2.1.7" */ $ version = $ this -> productMetadata -> getVersion ( ) ; if ( version_compare ( $ version , '2.2.0' ) >= 0 ) { return $ this -> dateTime -> gmtTimestamp ( ) ; } return $ this -> timezone -> scopeTimeStamp ( ) ; }
Get timestamp used for time related database fields in the cron tables

Note: The timestamp used will change from Magento 2.1.7 to 2.2.0 and
these changes are branched by Magento version in this method.

@return int
Get timestamp used for time related database fields in the cron tables