core/twig/tag/CacheNode.php
private function duration($time){
        if(is_numeric($time)){ 
            return $time;
        }//if
        return (new \DateTime($time))->getTimestamp() - (new \DateTime('now'))->getTimestamp();
    }
private function duration($time){
        if(is_numeric($time)){ 
            return $time;
        }//if
        return (new \DateTime($time))->getTimestamp() - (new \DateTime('now'))->getTimestamp();
    }
private function duration ( $ time ) { if ( is_numeric ( $ time ) ) { return $ time ; } //if return ( new \ DateTime ( $ time ) ) -> getTimestamp ( ) - ( new \ DateTime ( 'now' ) ) -> getTimestamp ( ) ; }
Convert a potential string date like `+30 days` to seconds.

@param int|string

@return int
Convert a potential string date like + 30 days to seconds .