TYPO3 CMS  TYPO3_6-2
TimeSinceLastUpdateViewHelper.php
Go to the documentation of this file.
1 <?php
3 
22 
29  public function render($lastUpdateTime) {
30  if (NULL === $lastUpdateTime) {
31  return $GLOBALS['LANG']->sL(
32  'LLL:EXT:extensionmanager/Resources/Private/Language/locallang.xlf:extensionList.updateFromTer.never'
33  );
34  }
35  return \TYPO3\CMS\Backend\Utility\BackendUtility::calcAge(
36  time() - $lastUpdateTime->format('U'),
37  $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.minutesHoursDaysYears')
38  );
39  }
40 }
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]