{"action":"created","issue":{"url":"https://api.github.com/repos/arista-eosext/PCAPDecoder/issues/3","labels_url":"https://api.github.com/repos/arista-eosext/PCAPDecoder/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/arista-eosext/PCAPDecoder/issues/3/comments","events_url":"https://api.github.com/repos/arista-eosext/PCAPDecoder/issues/3/events","html_url":"https://github.com/arista-eosext/PCAPDecoder/issues/3","id":75958961,"number":3,"title":"The decoded timestamp in the new pcap file is different from the one printed to stdout","user":{"login":"advornic","id":4182868,"avatar_url":"https://avatars.githubusercontent.com/u/4182868?v=3","gravatar_id":"","url":"https://api.github.com/users/advornic","html_url":"https://github.com/advornic","followers_url":"https://api.github.com/users/advornic/followers","following_url":"https://api.github.com/users/advornic/following{/other_user}","gists_url":"https://api.github.com/users/advornic/gists{/gist_id}","starred_url":"https://api.github.com/users/advornic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advornic/subscriptions","organizations_url":"https://api.github.com/users/advornic/orgs","repos_url":"https://api.github.com/users/advornic/repos","events_url":"https://api.github.com/users/advornic/events{/privacy}","received_events_url":"https://api.github.com/users/advornic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arista-eosext/PCAPDecoder/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T11:54:30Z","updated_at":"2015-05-13T11:58:19Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/arista-eosext/PCAPDecoder/issues/comments/101641427","html_url":"https://github.com/arista-eosext/PCAPDecoder/issues/3#issuecomment-101641427","issue_url":"https://api.github.com/repos/arista-eosext/PCAPDecoder/issues/3","id":101641427,"user":{"login":"advornic","id":4182868,"avatar_url":"https://avatars.githubusercontent.com/u/4182868?v=3","gravatar_id":"","url":"https://api.github.com/users/advornic","html_url":"https://github.com/advornic","followers_url":"https://api.github.com/users/advornic/followers","following_url":"https://api.github.com/users/advornic/following{/other_user}","gists_url":"https://api.github.com/users/advornic/gists{/gist_id}","starred_url":"https://api.github.com/users/advornic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advornic/subscriptions","organizations_url":"https://api.github.com/users/advornic/orgs","repos_url":"https://api.github.com/users/advornic/repos","events_url":"https://api.github.com/users/advornic/events{/privacy}","received_events_url":"https://api.github.com/users/advornic/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T11:58:19Z","updated_at":"2015-05-13T11:58:19Z","body":"This is expected because datetime.utcfromtimestamp cannot represent nanoseconds (and will round the digit value of the microseconds), whereas the pcap can. Here is an example:\r\n\r\n<pre>(Pdb)ts\r\n1430771223.8299<b>615</b>\r\n(Pdb)datetime.utcfromtimestamp(ts ).microsecond\r\n8299<b>62</b></pre>\r\n\r\nSolution would be to use something different for printing to stdout."}}