$formats = array(
	// day
	'day' => '\d:d | \D:D | \j:j | \l:l | \N:N | \S:S | \w:w | \z:z',
	// week
	'week' => '\W:W',
	// month
	'month' => '\F:F | \m:m | \M:M | \n:n | \t:t',
	// year
	'year' => '\L:L | \o:o | \Y:Y | \y:y',
	// time
	'time' => '\a:a | \A:A | \B:B | \g:g | \G:G | \h:h | \H:H | \i:i | \s:s | \u:u',
	// timezone
	'timezone' => '\e:e | \I:I | \O:O | \P:P | \T:T | \Z:Z',
	// full date/time
	'full_date_time' => '\c:c | \r:r | \U:U',
	// escape test
	'escape' => 'F | \F | \\F | \\\F | \\\\F | \\\\\F | \\\\\\F'
);

$timestamps = array(
	'now local' => current_time('timestamp'),
	'now unix (GMT)' => time(),
);

$outputtemplate = '&nbsp;&nbsp;&nbsp;&nbsp;with %s: %s<br/>';

foreach ( $timestamps as $timestampkey => $timestamp ) {
	echo('<br/>');
	echo(sprintf('------ format timestamp %s (%s) ------</br>',
		$timestamp,
		$timestampkey
	));
	foreach ( $formats as $formatkey => $format ) {
		echo(sprintf('format %s: %s</br>',
			$formatkey,
			$format
		));
		echo(sprintf($outputtemplate,
			'date_i18n()',
			date_i18n($format, $timestamp, false)
		));
		echo(sprintf($outputtemplate,
			'date()',
			date($format, $timestamp)
		));
		echo(sprintf($outputtemplate,
			'date_i18n(gmt)',
			date_i18n($format, $timestamp, true)
		));
	}
}