In summer how is there any heat/warmth in the air at night.?

Was just thinking, and couldn't find a clear answer online. When the sun is on the other side of the earth, and I do not believe the moon offers any supporting heat,

So how does the air maintain its tempature, where is the warmth coming from.
10 answers 10