attributeTimeToDouble function

Converts XML attributes.