I am working with an API that is returning a JSON string that contains the following date/time in it:
2013-03-14T14:15:23-07:00
I get the date and the time, down to the second. But the last 5 characters are confusing me. I'm guessing that's a UTC offset. (mountain time) What i can't figure out how to do is to compare the above string to a date/time in python. The T is also throwing me off.
How do I encode a python date/time string to match the above?