Previous studies have demonstrated the involvement of spatial codes in the representation of time and numbers. We took advantage of a well-known spatial modulation (prismatic adaptation) to test the hypothesis that the representation of time is spatially oriented from left to right, with smaller time intervals being represented to the left of larger time intervals. Healthy subjects performed a time-reproduction task and a time-bisection task, before and after leftward and rightward prismatic adaptation. Results showed that prismatic adaptation inducing a rightward orientation of spatial attention produced an overestimation of time intervals, whereas prismatic adaptation inducing a leftward shift of spatial attention produced an underestimation of time intervals. These findings not only confirm that temporal intervals are represented as horizontally arranged in space, but also reveal that spatial modulation of time processing most likely occurs via cuing of spatial attention, and that spatial attention can influence the spatial coding of quantity in different dimensions.