Duration of a collada animation

Is there any way of getting the duration of a collada animation?

I usually just include it in the file name. Otherwise you should be able to parse the *.dae file for the framecount -maybe the shiny new xml nodes are your friend here. You would still need to input a fps value to get a time duration though.