Elgg  Version 3.0
Variables
date.php File Reference

Go to the source code of this file.

Variables

 $format = elgg_extract('format', $vars, elgg_get_config('date_format', elgg_echo('input:date_format')), false)
 Displays a formatted date. More...
 
 $value = elgg_extract('value', $vars)
 
if(!$valuetry
 
 $attributes
 

Variable Documentation

$attributes
Initial value:
= [
'datetime' => $dt->format('c')
$dt
Definition: time.php:69

Definition at line 19 of file date.php.

$format = elgg_extract('format', $vars, elgg_get_config('date_format', elgg_echo('input:date_format')), false)

Displays a formatted date.

$vars['value'] Date as DateTime, text or a Unix timestamp $vars['format'] Date format

Definition at line 9 of file date.php.

$value = elgg_extract('value', $vars)

Definition at line 11 of file date.php.

if (!$value) try
Initial value:
{
$value
Definition: date.php:40
$dt
Definition: time.php:69
static normalizeTime($time)
Returns DateTime object based on time representation.
Definition: Values.php:76

Definition at line 16 of file date.php.