Symfony2 API
Class

Symfony\Component\Locale\Stub\DateFormat\Hour1200Transformer

class Hour1200Transformer extends Hour1200Transformer

Alias of {@link \Symfony\Component\Intl\DateFormatter\DateFormat\Hour1200Transformer}.

Methods

format(DateTime $dateTime, $length)

{@inheritDoc}

from Hour1200Transformer
int normalizeHour(int $hour, string $marker = null)

Returns a normalized hour value suitable for the hour transformer type

from Hour1200Transformer
getReverseMatchingRegExp($length)

{@inheritDoc}

from Hour1200Transformer
extractDateOptions($matched, $length)

{@inheritDoc}

from Hour1200Transformer

Details

in Hour1200Transformer at line 24
public format(DateTime $dateTime, $length)

{@inheritDoc}

Parameters

DateTime $dateTime
$length

in Hour1200Transformer at line 35
public int normalizeHour(int $hour, string $marker = null)

Returns a normalized hour value suitable for the hour transformer type

Parameters

int $hour The hour value
string $marker An optional AM/PM marker

Return Value

int The normalized hour value

in Hour1200Transformer at line 47
public getReverseMatchingRegExp($length)

{@inheritDoc}

Parameters

$length

in Hour1200Transformer at line 55
public extractDateOptions($matched, $length)

{@inheritDoc}

Parameters

$matched
$length