From owner-freebsd-questions Wed Sep 27 16:28:59 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id QAA18559 for questions-outgoing; Wed, 27 Sep 1995 16:28:59 -0700 Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id QAA18554 for ; Wed, 27 Sep 1995 16:28:58 -0700 Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <14697(3)>; Wed, 27 Sep 1995 16:28:17 PDT Received: by crevenia.parc.xerox.com id <177475>; Wed, 27 Sep 1995 16:28:07 -0700 From: Bill Fenner To: questions@freebsd.org Subject: What time zone does microtime() use? Message-Id: <95Sep27.162807pdt.177475@crevenia.parc.xerox.com> Date: Wed, 27 Sep 1995 16:28:01 PDT Sender: owner-questions@freebsd.org Precedence: bulk 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