From owner-freebsd-stable Thu Oct 17 21:45:13 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F32A37B401 for ; Thu, 17 Oct 2002 21:45:12 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AE0243E8A for ; Thu, 17 Oct 2002 21:45:11 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id VAA85326; Thu, 17 Oct 2002 21:23:51 -0700 (PDT) Received: from arch20m.dellroad.org (localhost [127.0.0.1]) by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id g9I4NoON021005; Thu, 17 Oct 2002 21:23:50 -0700 (PDT) (envelope-from archie@arch20m.dellroad.org) Received: (from archie@localhost) by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id g9I4NoI2021004; Thu, 17 Oct 2002 21:23:50 -0700 (PDT) From: Archie Cobbs Message-Id: <200210180423.g9I4NoI2021004@arch20m.dellroad.org> Subject: Re: mktime problem? In-Reply-To: <3DAF7D3A.7060603@ntmk.ru> "from Boris Kovalenko at Oct 18, 2002 09:17:14 am" To: Boris Kovalenko Date: Thu, 17 Oct 2002 21:23:50 -0700 (PDT) Cc: freebsd-stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Boris Kovalenko writes: > I expect 28 Oct 00:00, but got 27 Oct 23:00. Why? Daylight saving should > be at 28 Oct 02:00? My zoneinfo is Yekaterinburg. Quoting mktime(3): (A positive or zero value for tm_isdst causes mktime() to presume initially that summer time (for example, Daylight Saving Time) is or is not in effect for the specified time, respectively. A negative value for tm_isdst causes the mktime() function to attempt to divine whether summer time is in effect for the specified time. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message