src/Import/ImportAnalytics.php
protected function isUtcValid($utc, $now, $rp) {
        if( 'forever' == $rp) {
            $nowDate = date('Y-m-d', strtotime($now));
            if(strtotime($utc) >= strtotime($nowDate)) {
                return false;
            }
        } 
        if( 'years_5' == $rp) {
            $min = date('i', strtotime($now));
            $minutes = $min > 45 ? 45 : ( $min > 30 ? 30 : ( $min > 15 ? 15 : '00') );       
            $nowLimit = date('Y-m-d', strtotime($now)) . "T" . date('H', strtotime($now)) . ":$minutes:00Z";
            if(strtotime($utc) >= strtotime($nowLimit)) {
                return false;
            }
        }
        return true;
    }
protected function isUtcValid($utc, $now, $rp) {
        if( 'forever' == $rp) {
            $nowDate = date('Y-m-d', strtotime($now));
            if(strtotime($utc) >= strtotime($nowDate)) {
                return false;
            }
        } 
        if( 'years_5' == $rp) {
            $min = date('i', strtotime($now));
            $minutes = $min > 45 ? 45 : ( $min > 30 ? 30 : ( $min > 15 ? 15 : '00') );       
            $nowLimit = date('Y-m-d', strtotime($now)) . "T" . date('H', strtotime($now)) . ":$minutes:00Z";
            if(strtotime($utc) >= strtotime($nowLimit)) {
                return false;
            }
        }
        return true;
    }
protected function isUtcValid ( $ utc , $ now , $ rp ) { if ( 'forever' == $ rp ) { $ nowDate = date ( 'Y-m-d' , strtotime ( $ now ) ) ; if ( strtotime ( $ utc ) >= strtotime ( $ nowDate ) ) { return false ; } } if ( 'years_5' == $ rp ) { $ min = date ( 'i' , strtotime ( $ now ) ) ; $ minutes = $ min > 45 ? 45 : ( $ min > 30 ? 30 : ( $ min > 15 ? 15 : '00' ) ) ; $ nowLimit = date ( 'Y-m-d' , strtotime ( $ now ) ) . "T" . date ( 'H' , strtotime ( $ now ) ) . ":$minutes:00Z" ; if ( strtotime ( $ utc ) >= strtotime ( $ nowLimit ) ) { return false ; } } return true ; }
Is valid utc

@param string $utc
@param string $now
@param string $rp
@return boolean
Is valid utc