By an argument similar to that of Gibbons and Stewart (1984) but in a different coordinate system and less restrictive gauge, we show that any weakly asymptotically simple, analytic vacuum or electrovacuum solutions of the Einstein equations which are periodic in time are necessarily stationary.