Dates are given as indicators of when first and last the city was capital of a sovereign nation; they do not necessarily mean the city was capital continuously between those years.
If a city changed name while remaining a national capital I have tried to use the most recent name.
Source https://en.m.wikipedia.org/wiki/List_of_former_national_capitals