The following values in the frame.time column of the CSV file from tshark fail to parse with the library
Apr 01, 2020 16:29:53.150479 CSTApr 01, 2020 16:29:53.150479 CEST
Replacing with this one works:
Apr 01, 2020 16:29:53.150479 CET
Environment
MacOS
Python 3.8
numpy-1.18.2
python_dateutil-2.8.1
pandas-1.0.3
pytz-2019.3
Error message
File "/Users/maxsharabayko/projects/srt/lib-tcpdump-processing/scripts/get_traffic_stats.py", line 35, in main
srt_packets = extract_packets.extract_srt_packets(csv_filepath)
File "/Users/maxsharabayko/projects/srt/lib-tcpdump-processing/tcpdump_processing/extract_packets.py", line 145, in extract_srt_packets
srt_packets['frame.time'] = pd.to_datetime(srt_packets['frame.time'], format='%b %d, %Y %H:%M:%S.%f %Z')
File "/Users/maxsharabayko/projects/srt/lib-tcpdump-processing/venv/lib/python3.8/site-packages/pandas/core/tools/datetimes.py", line 728, in to_datetime
values = convert_listlike(arg._values, format)
File "/Users/maxsharabayko/projects/srt/lib-tcpdump-processing/venv/lib/python3.8/site-packages/pandas/core/tools/datetimes.py", line 435, in _convert_listlike_datetimes
raise e
File "/Users/maxsharabayko/projects/srt/lib-tcpdump-processing/venv/lib/python3.8/site-packages/pandas/core/tools/datetimes.py", line 399, in _convert_listlike_datetimes
result, timezones = array_strptime(
File "pandas/_libs/tslibs/strptime.pyx", line 142, in pandas._libs.tslibs.strptime.array_strptime
ValueError: time data 'Apr 1, 2020 16:29:53.150479000 CEST' does not match format '%b %d, %Y %H:%M:%S.%f %Z' (match)
The following values in the
frame.time
column of the CSV file from tshark fail to parse with the libraryApr 01, 2020 16:29:53.150479 CST
Apr 01, 2020 16:29:53.150479 CEST
Replacing with this one works:
Apr 01, 2020 16:29:53.150479 CET
Environment
Error message
Sample files
pcapng + CSV produced: srt-frametime-cest.zip