Comparison between spatial and temporal wall oscillations in turbulent boundary layer flows