'long' =>
$date_formatter->
format($time, 'long', '',
$timezone),
'custom' =>
$date_formatter->
format($time, 'custom', 'c',
$timezone),
'fallback' =>
$date_formatter->
format($time, 'fallback', '',
$timezone),
'html_date' =>
$date_formatter->
format($time, 'html_date', '',
$timezone),
'html_datetime' =>
$date_formatter->
format($time, 'html_datetime', '',
$timezone),
'html_month' =>
$date_formatter->
format($time, 'html_month', '',
$timezone),
'html_time' =>
$date_formatter->
format($time, 'html_time', '',
$timezone),
'html_week' =>
$date_formatter->
format($time, 'html_week', '',
$timezone),
'html_year' =>
$date_formatter->
format($time, 'html_year', '',
$timezone),
'html_yearless_date' =>
$date_formatter->
format($time, 'html_yearless_date', '',
$timezone),
];
$this->
assertRenderedDatesEqual($view,
$dates,
$timezone);
} // Check times in the past.
$time_since =
$date_formatter->
formatTimeDiffSince($time);
$intervals =
[ 'raw time ago' =>
$time_since,
'time ago' => "
$time_since ago",
'raw time span' =>
$time_since,
'inverse time span' => "-
$time_since",
'time span' => "
$time_since ago",
];