Time stamp representation in digits in a tsv to standard formate
<p>I have a text file and it contains data of the activities of online Facebook and Twitter users i.e. PostID or userID. These IDs are represented in decimal. For example "PostID":4038363805081732322.But the problem is that there is one column where time stamp of the post is also represented in decimal format e.g "PostTimeStamp": <strong>1413332041998</strong>.These values have time in hours But i don't have any clue of converting these values into <strong>hours</strong>. Please tell me how can I convert these values and into hours. I am using python.</p>

<p>This is epoch time, from the python library:
    "time.ctime([secs])" - 
Convert a time expressed in seconds since the epoch to a string representing local time. If secs is not provided or None, the current time as returned by time() is used. ctime(secs) is equivalent to asctime(localtime(secs)). Locale information is not used by ctime().</p>

<p>So just do:</p>

<pre><code>import time
time.ctime(1413332041998/1000)
&gt;&gt; ' Wed Oct 15 11:14:01 2014'
</code></pre>

python