Update time stamp function

getFileTimeStamp() is now renamed to parseTimeStamp() and will be called
automatically from timeStamp() function to reduce redundancy in main
code.