Check your battery cables. Make sure they are clean, tight and not corroded on the inside.
The clock resetting happened to me a couple weeks ago, it was the positve battery cable had internal corrosion, wiggling it got me home. Although everything electrical was shutting down when this happened to me.
When you turn the key to position 1, does the check engine light come on with the main relay click and fuel pump prime?