In general, in the presence of both a charge density ρ(r, t) and current density J (r, t), there will be both an electric and a magnetic field, and both will vary in time. They are determined by Maxwell's equations, a set of differential equations which directly relate E and B to ρ and J.