Individuals can hold contrasting views about distinct times, e.g., dread over tomorrow’s appointment and excitement about next summer’s vacation. Yet, psychological measures of happiness and optimism often assess only one time-point. Taking inspiration from the Treasury bond yield curve, which compares bond yields by their date to maturity, we compare online sentiment about different future times. Using over 2.1M tweets that reference 23 points in the future (2 days-30 years), we calculate the monthly mean sentiment toward each time point and analyze how it differs across short-, medium-, and longer-term future references. We call this function the optimism curve, as it measures levels of optimism toward different times into the future. Over the three year period of August 2017 to October 2020, we generally see a downward optimism curve, i.e., the long-term future is discussed less positive than the short-term. During the COVID-19 pandemic the optimism curve temporarily inverted, indicating declining optimism about the near future. Our findings show that social media users make differentiated assessments of the future that change in real-time to reflect uncertainty and major societal events.