Cosmological time in (2+1)-gravity