mariadb Datetime zmiana na mikrosekund

create function example(x datetime(5)) returns time(4)
begin
  declare y timestamp(6);
  return cast(x as time(2));
end;
Bad Bird