From my experience in Lisbon, it took me 1h to do 30 km during rush hour and 2h outside rush hour.
As the trains/bus/boat connections get drastically reduced outside rush hour.
Ah, and good luck returning back home after mid-night.
Talking with Spanish friends, their view of Madrid network isn't much different from my experience.
In any case I was talking in general, because outside the major European cities, the transports are even worse, like 1 bus connection every two hours until 8pm and such.
There can be very particular routes for which 30km can take very long (although I do not see how a 30km trip is relevant when we're talking about the centre of the cities), but this is not common. And 8pm is not late at all, it is quite easy to move at that time. Again, I do not know Lisboa, but your generalization does not fit with my experience at all.
A 30km trip is relevant, because there is a large set of population that works on the city center, yet it can only afford to buy a house 30-100km away from it, and commutes every day.
I lived in middle size cities where after 8pm there are no more buses, only taxis.
For me major doesn't necessary mean country/region capital.
Example Coimbra and Porto are major European cities, and good luck getting in less than 1h if you happen to live outside of the happy path of bus/subway lines.
In what middle sized cities can people only afford to buy a house 30-100km from it?
http://m.faz.net/aktuell/wirtschaft/wohnen/haus/immobilienma...