Symfony2 API
Class

Symfony\Component\Locale\Stub\DateFormat\Hour2401Transformer

class Hour2401Transformer extends Hour2401Transformer

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

Methods

format(DateTime $dateTime, $length)

{@inheritDoc}

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

Returns a normalized hour value suitable for the hour transformer type

from Hour2401Transformer
getReverseMatchingRegExp($length)

{@inheritDoc}

from Hour2401Transformer
extractDateOptions($matched, $length)

{@inheritDoc}

from Hour2401Transformer

Details

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

{@inheritDoc}

Parameters

DateTime $dateTime
$length

in Hour2401Transformer 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 Hour2401Transformer at line 49
public getReverseMatchingRegExp($length)

{@inheritDoc}

Parameters

$length

in Hour2401Transformer at line 57
public extractDateOptions($matched, $length)

{@inheritDoc}

Parameters

$matched
$length