From 5f3197e8be92c99d4e6da4d4dbd0c80a374dc6a1 Mon Sep 17 00:00:00 2001 From: John Thacker Date: Sat, 25 Dec 2021 13:26:04 -0500 Subject: [PATCH] text2pcap: Update usage for new time format options --- text2pcap.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/text2pcap.c b/text2pcap.c index 99bad1776a..a9a4a11981 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -259,13 +259,11 @@ print_usage (FILE *output) " -o hex|oct|dec|none parse offsets as (h)ex, (o)ctal, (d)ecimal, or (n)one;\n" " default is hex.\n" " -t treat the text before the packet as a date/time code;\n" - " the specified argument is a format string of the sort\n" - " supported by strptime.\n" + " is a format string supported by strptime,\n" + " with an optional %%f descriptor for fractional seconds.\n" " Example: The time \"10:15:14.5476\" has the format code\n" - " \"%%H:%%M:%%S.\"\n" - " NOTE: The subsecond component delimiter, '.', must be\n" - " given, but no pattern is required; the remaining\n" - " number is assumed to be fractions of a second.\n" + " \"%%H:%%M:%%S.%%f\"\n" + " The special format string ISO supports ISO-8601 times.\n" " NOTE: Date/time fields from the current date/time are\n" " used as the default for unspecified fields.\n" " -D the text before the packet starts with an I or an O,\n"