A Time-spectral Approach to Numerical Weather Prediction