Updated GetTime function to use lengthTwo()

Changed the getTimeFunction to call the lengthTwo() function to ensure
that the times were each a string of 2 chacacters. Moved the lengthTwo()
function to the top of the file. Cleaned up some whitespace and spelling
mistakes.