Neos\Flow\I18n\Formatter\DatetimeFormatter::padString PHP Méthode

padString() protected méthode

Pads given string to the specified length with zeros.
protected padString ( string $string, integer $formatLength ) : string
$string string
$formatLength integer
Résultat string Padded string (can be unchanged if $formatLength is lower than length of string)
    protected function padString($string, $formatLength)
    {
        return str_pad($string, $formatLength, '0', \STR_PAD_LEFT);
    }