Electromagnetic time reversal is commonly used for field imaging and focusing. This Letter builds upon the concept of the time-reversal cavity, which constitutes the main theoretical framework of time reversal theory. We study the behavior of the fields using modern methods of mathematical physics involving Colombeau generalized functions. This approach allows for a direct expression of time-reversed electric and magnetic fields in anisotropic time-reversal-invariant and nonreciprocal media. Moreover, the results hold for any arbitrary localized source and can readily be applied beyond the dipole approximation. Finally, a general result allows the prediction of the quality of focusing of the time-reversed fields as a function of the electrical permittivity and the magnetic permeability tensors in homogeneous anisotropic media, which contributes to the understanding of time reversal in complex media such as super-resolution enabling metamaterials.