I'm afraid you can't do an average on a TIME :-(
But it's not that complicated :-)
TIME '00:00:00'
+ CAST(AVG(EXTRACT(HOUR FROM starttime) * 3600 +
EXTRACT(MINUTE FROM starttime) * 60 +
EXTRACT(SECOND FROM starttime)) AS INT) * INTERVAL '00:00:01' HOUR TO SECOND
I'm afraid you can't do an average on a TIME :-(
But it's not that complicated :-)
Btw, you can do an AVG(DATEcol)...
Dieter