Ethereal-users: Re: [Ethereal-users] Capture conversions

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

From: Robert McConnell <rmcconne@xxxxxxxxxxxxx>
Date: Sun, 23 Feb 2003 16:15:23 -0500
At 2/23/03 12:51 PM -0800, Guy Harris wrote:
On Sun, Feb 23, 2003 at 10:36:21AM -0600, Gerald Combs wrote:
> According to 'date -ud "1/1/1980" +%s' there are 315532800 seconds between
> the Unix and DOS epochs.

Although that raises the question of whether the DOS epoch is local time
or GMT.  If, as I suspect, it's local time, you'd also need to add in
a time zone offset between local time (which you'd probably have to
assume is local time on the machine on which you're reading the file)
and UTC.

MS-DOS clocks are always local time. MS-Windows enforces daylight savings time by adjusting both the hardware and BIOS clocks twice a year. Of course, some applications don't pay attention to DST, so file times may vary by an hour depending on which half of the year you are in and what version you read them on.

Bob McConnell
N2SPP