* * 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 (0-23). * * @author Igor Wiedler * * @internal */ class Hour2400Transformer extends HourTransformer { /** * {@inheritdoc} */ public function format(\DateTime $dateTime, $length) { return $this->padLeft($dateTime->format('G'), $length); } /** * {@inheritdoc} */ public function normalizeHour($hour, $marker = null) { if ('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, ); } } __halt_compiler();----SIGNATURE:----I+gTlL1as6QPgrDvj+cjnIs7mw4ogp078iXixcOlvO1ZQ/iniA4GUZVhX7dIzDPmbpYGvCO1NE9nKc56JQy49EREHr+CGQMob0fLkZq3DqDdpeNDYD+VijsMka2Di9IKJ209DHXuoyEzcQtzfXUjfVpnAlHdUhIBFn2Q+fsc1oEA1enKh6gM8YO3UrbvvBABhbQT6399osncq5d3Q8pc3Iwd5W2nf6eA8WCGeDpUOA9TYzRX0w1Ie4oelq2DGWVxT82e1BvTxZ3f1EebnNX60RF+No/2AUoa9mSc1YxiFhw8YUkNr6txxEGGAwUntF8D8WexNATdSGX5wvwTXHHP2DCa5FF4y9yXnYaZWZgm3tvBYmn9atXCIO6hGhhBqR322rrVodaRiLhTGid7Ooave0jaSnIaXUkOLs+28+cdi+qdQkt7VeZPw6ckversKoF1xKnCd+mX0NFJy6R2vSQ8OnqjHFK6rrASf1kXkLVDTJ1y25LBOhvFehUy9+NXKkKX0k4pInVSn7r+LgivGW3XdGZrdWecNNR2hkK7AP6VhQaIQ4p+SbLt8iB48Ka4zp4Zj2sAzHDRzOsiAHPrHVJujYZ14ZZM49H9j4JQgOTSPskT1tcblHYhcn3biw70X20KVbf9Xyjr/EO4b1utSYML/du0Ga4gyXhhyOZ4FmXbzzM=----ATTACHMENT:----Njc1NzQ2NDYxMjI5MTI2MiAyMjczODY2NTM0NDEwODYgNjc3MjQ2OTkxMzUyNjg2Nw==