replaced some of the older string-time conversion function calls