Ethereal-dev: Re: [Ethereal-dev] Time codes for text2pcap?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sun, 18 Nov 2001 23:26:15 -0800
On Mon, Nov 19, 2001 at 03:40:06AM -0000, Gordon McKinney wrote:
> I understand those constraints, the other possibility is you ignore the date
> stamp totally as most traces only need the deltas for anaylsis. A directive
> would probably be better i.e.
> 
>  -t 0     = No Date (Default)
>  -t 1     = Ansi (yyyy-mm-dd)
>  -t 2     = US (mm-dd-yyyy)
>  -t 3     = UK (dd-mm-yyyy)

Another possibility might be to use "strptime()"-style formats for the
day, month, year, hour, minute, and second, with the format string
specified as an argument to "-t".  (Then you'd use "strptime()" to
extract the year/month/day/hour/minute/second, and then extract the
fractions of a second from what's left after "strptime()" processed it.)

> In anycase would it be something I should undertake or is there an owner of
> this module?

There is somebody who wrote "text2pcap", but he's not the "owner" in the
sense of being the only person writing code for it