Time and date on the basis of seconds elapsed since 1970 year
<p>Using python I have to retrieve value of time and date of an event knowing how many seconds elapsed since <code>01/01/1970 00:00:00</code>.</p>

<p>I started with:</p>

<p><pre><code>
from datetime import timedelta
a = timedelta(seconds=1317365200)
print "%d days %02d:%02d:%02d" % (a.days, a.seconds / 3600, (a.seconds / 60) % 60, a.seconds % 60)1317365200
</pre></code></p>

<p>Record of seconds elapsed are stored in <strong>Sqlite 3</strong> database.</p>
