An artist's impression of Warren Field about 10,000 years ago showing burning material in one of the "calendar's" pits.
Archaeologists believe they have discovered the world's oldest lunar "calendar" in an Aberdeenshire field.
Excavations of a field at Crathes Castle found a series of 12 pits which appear to mimic the phases of the moon and track lunar months.
A team led by the University of Birmingham suggests the ancient monument was created by hunter-gatherers about 10,000 years ago.
The pit alignment, at Warren Field, was first excavated in 2004.
The experts who analysed the pits said they may have contained a wooden post.
The Mesolithic "calendar" is thousands of years older than previous known formal time-measuring monuments created in Mesopotamia.
The analysis has been published in the journal, Internet Archaeology.
The pit alignment also aligns on the Midwinter sunrise to provided the hunter-gatherers with an annual "astronomic correction" in order to better follow the passage of time and changing seasons.
Vince Gaffney, Professor of Landscape Archaeology at Birmingham, led the analysis project.
An illustration of how the pits would have worked.
He said: "The evidence suggests that hunter-gatherer societies in Scotland had both the need and sophistication to track time across the years, to correct for seasonal drift of the lunar year and that this occurred nearly 5,000 years before the first formal calendars known in the Near East.
"In doing so, this illustrates one important step towards the formal construction of time and therefore history itself."
The universities of St Andrews, Leicester and Bradford were also involved.
Dr Richard Bates, of the University of St Andrews, said the discovery provided "exciting new evidence" of the early Mesolithic Scotland.
He added: "This is the earliest example of such a structure and there is no known comparable site in Britain or Europe for several thousands of years after the monument at Warren Field was constructed."
Prof Vince Gaffney led the project to analyse the pits at Warren Field.
The Warren Field site was first discovered as unusual crop marks spotted from the air by the Royal Commission on the Ancient and Historical Monuments of Scotland (RCAHMS).
Dave Cowley, aerial survey projects manager at RCAHMS, said: "We have been taking photographs of the Scottish landscape for nearly 40 years, recording thousands of archaeological sites that would never have been detected from the ground.
"Warren Field stands out as something special, however. It is remarkable to think that our aerial survey may have helped to find the place where time itself was invented."
Crathes Castle and its estate is in the care of the National Trust for Scotland (NTS).
From 2004 to 2006, trust staff and Murray Archaeological Services excavated the site.
NTS archaeologist Dr Shannon Fraser said: "This is a remarkable monument, which is so far unique in Britain.
"Our excavations revealed a fascinating glimpse into the cultural lives of people some 10,000 years ago - and now this latest discovery further enriches our understanding of their relationship with time and the heavens."