Partial polarization of light beams in time and frequency domains