From primordial clocks to circadian oscillators