Copy of branch UKMO/restart_datestamp from trunk at r5936 for merge compatibility with the INGV wave coupling branch