Python: What is the easiest way to convert from time.time() value to time.strftime() value?
<p>I need to represent the time in <code>("%m/%d/%Y %H:%M:%S")</code> format from the float value I am getting in the form of <code>time.time()</code>.</p>

<p>I already have a value that is in the form of time.time(). For example I already have a value I am getting every .3 seconds from a device which is say, 1332449493.0, ...., I would then like to convert 1332449493.0 to a strftime format.</p>

<p>EX:
time.strftime("%m/%d/%Y %H:%M:%S", 1332449493.0) will throw a TypeError because strf requires a 9-item tuple and not a float.</p>
