original_string: private function makePrettyArchivedOnText()
      {
          $dateText = $this->metadata[DataTable::ARCHIVED_DATE_METADATA_NAME];
          $date     = Date::factory($dateText);
          $today    = mktime(0, 0, 0);
  
          if ($date->getTimestamp() > $today) {
              $elapsedSeconds = time() - $date->getTimestamp();
              $timeAgo        = $this->metricsFormatter->getPrettyTimeFromSeconds($elapsedSeconds);
  
              return Piwik::translate('CoreHome_ReportGeneratedXAgo', $timeAgo);
          }
  
          $prettyDate = $date->getLocalized(Date::DATE_FORMAT_SHORT);
  
          $timezoneAppend = ' (UTC)';
          return Piwik::translate('CoreHome_ReportGeneratedOn', $prettyDate) . $timezoneAppend;
      }
code: private function makePrettyArchivedOnText()
      {
          $dateText = $this->metadata[DataTable::ARCHIVED_DATE_METADATA_NAME];
          $date     = Date::factory($dateText);
          $today    = mktime(0, 0, 0);
  
          if ($date->getTimestamp() > $today) {
              $elapsedSeconds = time() - $date->getTimestamp();
              $timeAgo        = $this->metricsFormatter->getPrettyTimeFromSeconds($elapsedSeconds);
  
              return Piwik::translate('CoreHome_ReportGeneratedXAgo', $timeAgo);
          }
  
          $prettyDate = $date->getLocalized(Date::DATE_FORMAT_SHORT);
  
          $timezoneAppend = ' (UTC)';
          return Piwik::translate('CoreHome_ReportGeneratedOn', $prettyDate) . $timezoneAppend;
      }
code_tokens: private function makePrettyArchivedOnText ( ) { $ dateText = $ this -> metadata [ DataTable :: ARCHIVED_DATE_METADATA_NAME ] ; $ date = Date :: factory ( $ dateText ) ; $ today = mktime ( 0 , 0 , 0 ) ; if ( $ date -> getTimestamp ( ) > $ today ) { $ elapsedSeconds = time ( ) - $ date -> getTimestamp ( ) ; $ timeAgo = $ this -> metricsFormatter -> getPrettyTimeFromSeconds ( $ elapsedSeconds ) ; return Piwik :: translate ( 'CoreHome_ReportGeneratedXAgo' , $ timeAgo ) ; } $ prettyDate = $ date -> getLocalized ( Date :: DATE_FORMAT_SHORT ) ; $ timezoneAppend = ' (UTC)' ; return Piwik :: translate ( 'CoreHome_ReportGeneratedOn' , $ prettyDate ) . $ timezoneAppend ; }
docstring: Returns prettified and translated text that describes when a report was last updated.
  
  @return string
docstring_tokens: Returns prettified and translated text that describes when a report was last updated .