From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA02583; Thu, 9 Sep 2004 18:12:49 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA02373 for ; Thu, 9 Sep 2004 18:12:48 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from wetware.com (wetware.wetware.com [199.108.16.1]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i89GClIb014119 for ; Thu, 9 Sep 2004 18:12:48 +0200 Received: from [208.177.152.17] (helo=[10.0.1.5]) by wetware.com with esmtp (Exim 4.20) id 1C5RXP-0000Bc-OI for caml-list@inria.fr; Thu, 09 Sep 2004 09:12:43 -0700 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <14AA576E-027B-11D9-A648-000A958FF2FE@wetware.com> Content-Transfer-Encoding: 7bit From: james woodyatt Subject: Re: [Caml-list] date - waiting for 64-bit (was: Gripes with array) Date: Thu, 9 Sep 2004 09:12:43 -0700 To: Caml List X-Mailer: Apple Mail (2.619) X-Miltered: at concorde with ID 414080FF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; woodyatt:01 jhw:01 wetware:01 caml-list:01 samuel:01 shameless:01 tai:99 woodyatt:01 jhw:01 wetware:01 -bit:01 ocaml:01 ocaml:01 caml:01 caml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On 09 Sep 2004, at 04:55, Samuel Lelievre wrote: > > In the meanwhile, is there a way to work around the following? > > ------------------------------------------------------------------ >> Caml Light version 0.75 > > ##open "unix";; > #time ();; > - : int = -1052752875 > #gmtime (time ());; > - : tm = > {tm_sec = 51; tm_min = 38; tm_hour = 8; tm_mday = 22; tm_mon = 7; > tm_year = 36; tm_wday = 6; tm_yday = 234; tm_isdst = false} > # > ------------------------------------------------------------------ Shameless promotion: after you migrate away from Caml Light to OCaml 3.08.1, you may want to have a look at the Cf library in OCaml NAE project on SF.Net , where you will find an implementation of Daniel Bernstein's TAI64 time representation. If you are serious about working with values of standard time, then the Unix time functions are not your friends. They have lots of twisty little constraints on the utility of the values they give and take that are not at all intuitive. -- j h woodyatt markets are only free to the people who own them. ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners