Thinking aloud when I am tired:
Panjang = long
lama = long in terms of time
But why do we say:
sepanjang malam = all through the night
Notice that malam is made a passage of time hence the physical aspect is the derived understanding.
In other words, one night becomes a passage of time with a profile of one travelling the passage….all through the night
Time becomes space in this instance.