Relations between Fourier transforms and Fourier series