Converting Unix timestamp string to readable date
02:03 10 Sep 2010

I have a string representing a Unix timestamp (i.e. "1284101485") in Python, and I'd like to convert it to a readable date. When I use time.strftime, I get TypeError:

import time
print time.strftime("%B %d %Y", "1284101485")
Traceback (most recent call last):
  File "", line 1, in 
 TypeError: argument must be 9-item sequence, not str
python datetime unix-timestamp strftime