Hello,
I got my last issue resolved, working great thanks to you guys. I have a wide variety of date formats that I need to parse into this format: MM/DD/YYYY HH:MM:SS (a mysql DATETIME type value)..
I have tried:
post_date = time.strftime("%Y-%m%d %H:%M:%S", i.issued)
However, this gives me:
Traceback (most recent call last):
File "./parse.py", line 34, in ?
print time.strftime("%Y-%m-%d %H:%M:%S", i.issued)
TypeError: argument must be sequence of length 9, not 20
i.issued is a variable, with this as an (example) value:
(2005, 7, 24, 15, 32, 0, 6, 205, 0). I believe this is called a tuple?
If anybody knows how I can successfully parse this type of value into the MM/DD/YYYY HH:MM:SS format, I would be extremely grateful. Thank you! :)