Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 2002 21:23:50 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        Boris Kovalenko <boris@ntmk.ru>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: mktime problem?
Message-ID:  <200210180423.g9I4NoI2021004@arch20m.dellroad.org>
In-Reply-To: <3DAF7D3A.7060603@ntmk.ru> "from Boris Kovalenko at Oct 18, 2002 09:17:14 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210180423.g9I4NoI2021004>