# metric tensor of expanding universe

Why is the metric tensor of a expanding universe a function of time? Why is it not a function of distance between the galaxies? I heard this from a lecture. Can anyone help me understand?

-

The metric tensor is used to calculate distances. Since the distances between the galaxies change with time when nothing else changes, the metric tensor must be a function of time.

-