This will output a machine-readable version of the datetime, i.e. the ISO-8601
format.
This is intended as a replacement for `{$foo|date:'c'}`.
* {time time=$timestamp}
* {time time=$timestamp type='plainTime'}
* {time time=$timestamp type='plainDate'}
+ * {time time=$timestamp type='machine'}
* {time time=$timestamp type='custom' format='Y-m-d'}
*
* @author Tim Duesterhus, Marcel Werk
],
$locale
);
+ case 'machine':
+ return $dateTime->format(\DateTimeInterface::ATOM);
case 'custom':
return $dateTime->format($tagArgs['format']);
default: