Basilides, - the head of the Egyptian Gnostics - constructed a belief of Seven emanations or 'aeons' from the supreme Godhead. These emanations created the highest of the angels, created a form of heaven for themselves - in turn these angels brought forth lesser angels, until in turn the whole number of Angels reached 365 - (again we can point to many 'mythological' concepts such as Enoch, whose years of life numbered 365 - associated with a solar year)
Basilides believed that over all these emanations, there was a supreme God called Abraxas - whose numerical value (when the name is written in Greek) amounts to 365. Therefore this God was a type of symbol of the rotation of the Earth around the Sun.
...Incidentally this can be found in the Gods Mithras and Belenus