move ParseTimeDuration to common and make it public