Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Sep 1995 16:28:01 PDT
From:      Bill Fenner <fenner@parc.xerox.com>
To:        questions@freebsd.org
Subject:   What time zone does microtime() use?
Message-ID:  <95Sep27.162807pdt.177475@crevenia.parc.xerox.com>

next in thread | raw e-mail | index | archive | help
Hi,

  tcpdump prints out the time that a packet was received, according to BPF.
BPF uses microtime() to record this time.  When I use tcpdump on my
2.1-STABLE machine from a couple of days ago, it prints out times that
appear to be GMT+1.

% tcpdump -i de0
tcpdump: listening on de0
00:21:00.750186 fenestro.parc.xerox.com.login > crevenia.parc.xerox.com.1020: P 4200499942:4200499969(27) ack 1723392570 win 16384 [tos 0x10]
% date
Wed Sep 27 16:20:57 PDT 1995
% date -u
Wed Sep 27 23:21:06 GMT 1995

How do I get microtime() to use my time zone?  Or, alternatively, how do I
get it to use GMT?  GMT+1 seems to be an awfully strange choice.

  Bill



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?95Sep27.162807pdt.177475>