Removed unused code in time to string function.