Best bet for sustained sun is when the wind shifts around and comes from the north / onshore, which is more likely outside of the summer. Summer tends to pull the marine layer from the ocean towards the heat inland - but usually it does burn off during the day before coming back in for the evening.
The real answer is to stay on the east side of the city and look at the Bay Bridge instead!
It was in the 70's earlier this week - we get scattered warm days throughout the year, and they actually seem less likely in the summer, and much more likely in the fall, well into October.