I am Legend by Richard Matheson

Opening line:

On those cloudy days, Robert Neville was never sure when sunset came, and sometimes they were in the streets before he could get back.