PMA\libraries\Util::addMicroseconds PHP Method

addMicroseconds() public static method

If the string contains fractional seconds, pads it with 0s up to 6 decimal places.
public static addMicroseconds ( string $value ) : string
$value string time, datetime or timestamp strings
return string time, datetime or timestamp strings with fractional seconds
    public static function addMicroseconds($value)
    {
        if (empty($value) || $value == 'CURRENT_TIMESTAMP') {
            return $value;
        }
        if (mb_strpos($value, '.') === false) {
            return $value . '.000000';
        }
        $value .= '000000';
        return mb_substr($value, 0, mb_strpos($value, '.') + 7);
    }
Util