I am using dpkt library to get timestamp of packets and need to convert it into seconds. Below is my code to get packet timestamp:
f = open('test.pcap')
pcap = dpkt.pcap.Reader(f)
for ts, buf in pcap:
print "timestamp:",ts
I have 2 questions here:
1. Is the timestamp in milliseconds as I am not able to confirm this from documentation?
2. If it is in milliseconds... good way to convert to seconds is ts/1000.0 ?