@BrahmanandaRao
I've answered your question on how to read the time strings.
To make everything work: You're posting an input statement which uses list input but the data you post is not on the positions where it should be according to what you've coded. So what's correct now? The data layout or your input statement?
Why don't you give it a go first on your own and then ask more targeted questions when you get stuck.