Calculating mean time spent precipitating for a specified period/area?
Check with the Met Office to see what data is available.

My experience, from elsewhere, is that weather data: temperature, pressure and precipitation are recorded at important weather stations at half hourly intervals, with the data being in the format shown below

 

With data in format it is easy to determine the  "time spent raining" to a precision of half an hour.