From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 37020BB81 for ; Fri, 24 Dec 2004 12:26:22 +0100 (CET) Received: from home.mk.pp.ru (av6800.comex.ru [217.10.34.155]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iBOBQLM3004733 for ; Fri, 24 Dec 2004 12:26:22 +0100 Received: from ermine.home (ermine.home [192.168.2.2]) by home.mk.pp.ru (Postfix) with ESMTP id 55FFA20D88 for ; Fri, 24 Dec 2004 14:26:21 +0300 (MSK) Received: by ermine.home (Postfix, from userid 1001) id 7B6BE3A9E1F; Fri, 24 Dec 2004 14:27:25 +0300 (MSK) Date: Fri, 24 Dec 2004 14:27:25 +0300 From: Anastasia Gornostaeva To: Caml-list@yquem.inria.fr Subject: Re: [Caml-list] .- Message-ID: <20041224112725.GA10247@ermine.home> References: <20041224100422.GA10012@ermine.home> <41CBF877.3070102@epost.de> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <41CBF877.3070102@epost.de> User-Agent: Mutt/1.5.6i X-Miltered: at nez-perce with ID 41CBFCDD.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 wrote:01 argument:01 alexander:02 dec:03 fuchs:05 fri:05 interpreted:05 manual:07 actually:10 example:10 expected:11 returns:11 case:13 instead:13 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.0 X-Spam-Level: On Fri, Dec 24, 2004 at 12:07:35PM +0100, Alexander Fuchs wrote: > Form the manual: > > gmtime : Assumes UTC (Coordinated Universal Time), also known as GMT. > > mktime : The tm argument is interpreted in the local time zone. > > So, actually you compare GMT with your local time zone, which in my case > (Germany) returns 0 for the above example. > > > Try localtime instead of gmtime: > > localtime : Assumes the local time zone. > Great, thank you. Now it works as expected. ermine