From 46b77928f746a4231d064774b5b67fd892c7ce86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 4 Aug 2013 17:50:34 +0200 Subject: rm vendor --- .../DateFormat/Hour2401Transformer.php | 64 ---------------------- 1 file changed, 64 deletions(-) delete mode 100644 vendor/symfony/intl/Symfony/Component/Intl/DateFormatter/DateFormat/Hour2401Transformer.php (limited to 'vendor/symfony/intl/Symfony/Component/Intl/DateFormatter/DateFormat/Hour2401Transformer.php') diff --git a/vendor/symfony/intl/Symfony/Component/Intl/DateFormatter/DateFormat/Hour2401Transformer.php b/vendor/symfony/intl/Symfony/Component/Intl/DateFormatter/DateFormat/Hour2401Transformer.php deleted file mode 100644 index b0f486b9..00000000 --- a/vendor/symfony/intl/Symfony/Component/Intl/DateFormatter/DateFormat/Hour2401Transformer.php +++ /dev/null @@ -1,64 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Intl\DateFormatter\DateFormat; - -/** - * Parser and formatter for 24 hour format (1-24) - * - * @author Igor Wiedler - */ -class Hour2401Transformer extends HourTransformer -{ - /** - * {@inheritDoc} - */ - public function format(\DateTime $dateTime, $length) - { - $hourOfDay = $dateTime->format('G'); - $hourOfDay = ('0' == $hourOfDay) ? '24' : $hourOfDay; - - return $this->padLeft($hourOfDay, $length); - } - - /** - * {@inheritDoc} - */ - public function normalizeHour($hour, $marker = null) - { - if ((null === $marker && 24 === $hour) || 'AM' == $marker) { - $hour = 0; - } elseif ('PM' == $marker) { - $hour = 12; - } - - return $hour; - } - - /** - * {@inheritDoc} - */ - public function getReverseMatchingRegExp($length) - { - return '\d{1,2}'; - } - - /** - * {@inheritDoc} - */ - public function extractDateOptions($matched, $length) - { - return array( - 'hour' => (int) $matched, - 'hourInstance' => $this - ); - } -} -- cgit v1.2.3