We present an in-depth study of electromagnetic wave propagation in a temporal photonic crystal, namely, a nonconducting medium whose permittivity and/or permeability are modulated periodically by unspecified agents (these modulations not necessarily being in phase). Maxwell's equations lead to an eigenvalue problem whose solution provides the dispersion relation for the waves that can propagate in such a dynamic medium. This is a generalization of previous work [J. R. Zurita-Sánchez and P. Halevi, Phys. Rev. A 81, 053834 (2010)] that was restricted to the electric modulation . For our numerical work (only) we assumed the harmonic modulations and , where is the circular modulation frequency; and are, respectively, the strengths of the electric and magnetic modulations; and is the phase difference between these modulations. An analytic calculation for weak modulations leads to two bands, and , that are separated by a gap. If the modulations are in phase , this gap is proportional to , while the gap is proportional to if the modulations are out of phase . The gap thus disappears for equal, in-phase, modulations . An exact solution of the eigenvalue equation confirms that these approximations hold reasonably well even for moderate modulations. In fact, there are no gaps for equal modulations even if these are very strong . The photonic band structure is periodic in , with period , and there is an infinite number of bands , Further, by allowing and to have imaginary parts, we examined the effects of damping on the bands. We also determined the optical response of a temporal photonic crystal slab, applying the above harmonic model for and . The reflected and transmitted light represent a frequency comb of frequencies , , The transmission coefficients for these harmonics of the modulation frequency strongly depend on the parameters , , and , as well as on the thickness of the slab. Moreover, they can much exceed unity, as a result of energy transfer from the source of modulation. In a particularly interesting case, exhibits oscillations with peaks that resemble parametric resonances, rather than the usual Fabry-Perot resonances.