The atmospheric temperature in the cities on the sea-coast changes very little due to the following reasons:
1) The specific heat capacity of water is four times greater than land. This means water heats and cools more slowly than land. Also, once the ocean has warmed, it gives up its heat much slower than the land.
2) The moisture content of the air over coastal locations is very high. Moisture in the form of water vapour is the predominate greenhouse gas in the troposphere. Water vapour prevents the loss of heat into space at night. Thus, the temperature during day and night is almost the same.