Antikythera mechanism
A number of gears worked together, much like they do in a mechanical clock. The device could predict astronomical positions, eclipses, the motions of the sun, the moon and probably some of the planets. This makes it possible to use the device as a calendar. There were three big dials, and three small ones. Used as a calendar the main functions were: