iTime does not contain just the hour, it also contains the minutes. str_to_num should only be used when the only thing the string contains only numbers.
I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).