Python で UNIX タイムスタンプ (つまり、「1284101485」) を表す文字列があり、それを読み取り可能な日付に変換したいと考えています。を使用するtime.strftime
と、次のようになりますTypeError
。
>>>import time
>>>print time.strftime("%B %d %Y", "1284101485")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: argument must be 9-item sequence, not str