Symfony\Component\Intl\DateFormatter\DateFormat\HourTransformer
Base class for hour transformers
- Author: Eriksen Costa <eriksen.costa@infranology.com.br>
Synopsis
class HourTransformer
extends Transformer
{
- // methods
- public abstract int normalizeHour()
- // Inherited methods from Transformer
- public abstract string format()
- public abstract string getReverseMatchingRegExp()
- public abstract array extractDateOptions()
- protected string padLeft()
Hierarchy
Extends
Extended by
- Symfony\Component\Intl\DateFormatter\DateFormat\Hour2400Transformer
- Symfony\Component\Intl\DateFormatter\DateFormat\Hour1201Transformer
- Symfony\Component\Intl\DateFormatter\DateFormat\Hour2401Transformer
- Symfony\Component\Intl\DateFormatter\DateFormat\Hour1200Transformer
- Symfony\Component\Locale\Stub\DateFormat\Hour2400Transformer
- Symfony\Component\Locale\Stub\DateFormat\Hour1201Transformer
- Symfony\Component\Locale\Stub\DateFormat\Hour2401Transformer
- Symfony\Component\Locale\Stub\DateFormat\HourTransformer
- Symfony\Component\Locale\Stub\DateFormat\Hour1200Transformer
Methods
public
- normalizeHour() — Returns a normalized hour value suitable for the hour transformer type
Inherited from Symfony\Component\Intl\DateFormatter\DateFormat\Transformer
protected
- padLeft() — Pad a string with zeros to the left
public
- extractDateOptions() — Extract date options from a matched value returned by the processing of the reverse matching regular expression
- format() — Format a value using a configured DateTime as date/time source
- getReverseMatchingRegExp() — Returns a reverse matching regular expression of a string generated by format()