function elysia_cron_date in Elysia Cron 7.2
Same name and namespace in other branches
- 5.2 elysia_cron.admin.inc \elysia_cron_date()
- 5 elysia_cron.admin.inc \elysia_cron_date()
- 6.2 elysia_cron.admin.inc \elysia_cron_date()
- 6 elysia_cron.admin.inc \elysia_cron_date()
- 7 elysia_cron.admin.inc \elysia_cron_date()
Build time in "ago" format.
Parameters
int $timestamp: Time of latest cron.
Return value
string Date in 'ago' format.
2 calls to elysia_cron_date()
- drush_elysia_cron_run_wrapper in ./
elysia_cron.drush.inc - Custom callback for 'elysia-cron' drush command.
- elysia_cron_admin_page in ./
elysia_cron.admin.inc - Page callback for 'admin/config/system/cron' path.
File
- ./
elysia_cron.admin.inc, line 818 - Admin page callbacks for the elysia cron module.
Code
function elysia_cron_date($timestamp) {
return $timestamp > 0 ? t('!time ago', array(
'!time' => format_interval(REQUEST_TIME - $timestamp, 2),
)) : t('n/a');
}