Why motion of earth about its axis is periodic but not in S.H.M.?

Earth is simply rotating about its axis. There is no to and fro motion but time of rotation of earth is fixed. Thus, motion of earth about its axis is periodic but not simple harmonic.