You can calculate this by using the following formula:
Month = 29.5305882 + 0.00000016xT dayswhere T is the number of centuries from 1900. For 5000 years ago, this is -50 centuries so the synodical month is 29.5305882 + 0.00000016 x (-50) = 29.5305802 days. The difference is 0.0000008 days or 0.069 seconds. So the time between Full Moon and Full Moon was 0.069 seconds SHORTER around 3100 BC. Similarly, in 5000 years fron now ( +50 centuries) the Synodic Month will be 0.069 seconds LONGER than it is today.