Neos\Flow\I18n\Formatter\DatetimeFormatter::padString PHP Method

padString() protected method

Pads given string to the specified length with zeros.
protected padString ( string $string, integer $formatLength ) : string
$string string
$formatLength integer
return 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);
    }