A relationship between space and time distributions in homogeneous traffic flow and its applications