The weather in Dunfermline, and all around Fife, is generally temperate, making it possible to visit throughout the year. July is typically the warmest and sunniest month, while January is the coldest and the wettest. Dunfermline does not experience the large crowds of tourists that fill up Edinburgh and other parts of Scotland in July/August, so summer is the ideal time to visit for long daylight hours and enjoying the outdoors.