protected function humanDateOther($parsedTxt, \DateTime $current)
    {
        $currentClass = get_called_class();
        
        $dateFormat = $currentClass::$humanReadableFormats['dateDifferentYear'];
        if ($current->format('Y') === $this->format('Y')) {
            $dateFormat = $currentClass::$humanReadableFormats['dateSameYear'];
        }
        
        $parsedTxt->date = $currentClass::$humanReadableI18n['others'];
        $parsedTxt->time = $currentClass::$humanReadableI18n['time_part'];
        
        $date = $this->format($dateFormat);
        $time = $this->format($currentClass::$humanReadableFormats['time']);
        
        $this->humanParseDateAndTimeText($parsedTxt, $date, $time);
    }
protected function humanDateOther($parsedTxt, \DateTime $current)
    {
        $currentClass = get_called_class();
        
        $dateFormat = $currentClass::$humanReadableFormats['dateDifferentYear'];
        if ($current->format('Y') === $this->format('Y')) {
            $dateFormat = $currentClass::$humanReadableFormats['dateSameYear'];
        }
        
        $parsedTxt->date = $currentClass::$humanReadableI18n['others'];
        $parsedTxt->time = $currentClass::$humanReadableI18n['time_part'];
        
        $date = $this->format($dateFormat);
        $time = $this->format($currentClass::$humanReadableFormats['time']);
        
        $this->humanParseDateAndTimeText($parsedTxt, $date, $time);
    }
protected function humanDateOther ( $ parsedTxt , \ DateTime $ current ) { $ currentClass = get_called_class ( ) ; $ dateFormat = $ currentClass :: $ humanReadableFormats [ 'dateDifferentYear' ] ; if ( $ current -> format ( 'Y' ) === $ this -> format ( 'Y' ) ) { $ dateFormat = $ currentClass :: $ humanReadableFormats [ 'dateSameYear' ] ; } $ parsedTxt -> date = $ currentClass :: $ humanReadableI18n [ 'others' ] ; $ parsedTxt -> time = $ currentClass :: $ humanReadableI18n [ 'time_part' ] ; $ date = $ this -> format ( $ dateFormat ) ; $ time = $ this -> format ( $ currentClass :: $ humanReadableFormats [ 'time' ] ) ; $ this -> humanParseDateAndTimeText ( $ parsedTxt , $ date , $ time ) ; }
Format date to human readable when date is not now, today or yesterday

@param object $parsedTxt Texts returned by humanReadable method
@param \DateTime $current DateTime object for now

@return void
Format date to human readable when date is not now today or yesterday