Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The decoded timestamp in the new pcap file is different from the one printed to stdout #3

Open
advornic opened this issue May 13, 2015 · 1 comment
Labels

Comments

@advornic
Copy link
Contributor

No description provided.

@advornic advornic added the bug label May 13, 2015
@advornic
Copy link
Contributor Author

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:

(Pdb)ts
1430771223.8299615
(Pdb)datetime.utcfromtimestamp(ts ).microsecond
829962

One solution could be to use something different for printing to stdout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant