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 OAA23106; Thu, 9 Sep 2004 14:21:34 +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 OAA23897 for ; Thu, 9 Sep 2004 14:21:33 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i89CLXNC007136 for ; Thu, 9 Sep 2004 14:21:33 +0200 Received: from bourg.inria.fr (bourg.inria.fr [128.93.11.100]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA21803 for ; Thu, 9 Sep 2004 14:21:33 +0200 (MET DST) Received: from basile by bourg.inria.fr with local (Exim 4.34) id 1C5NvD-00076F-57 for caml-list@inria.fr; Thu, 09 Sep 2004 14:21:03 +0200 Date: Thu, 9 Sep 2004 14:21:03 +0200 To: caml-list@inria.fr Subject: Re: [Caml-list] date - waiting for 64-bit (was: Gripes with array) Message-ID: <20040909122103.GA27255@bourg.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040803i From: "Basile Starynkevitch [local]" X-Miltered: at concorde with ID 41404ACD.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 basile:01 basile:01 2004:99 samuel:01 developped:01 anyhow:01 cristal:01 cristal:01 -bit:01 -bit:01 ocaml:01 ocaml:01 caml:01 caml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Sep 09, 2004 at 01:55:47PM +0200, Samuel Lelievre wrote: > Ville-Pertti Keinonen wrote: > > >...and personally I hope we'll all be migrating to 64-bit > >architectures soon, anyhow. > > 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} > # I suggest to switch to Ocaml (even on a 32 bits machine) % ocaml Objective Caml version 3.08.0 # #load "unix.cma";; # Unix.time ();; - : float = 1094732223. # Unix.gmtime (Unix.time ());; - : Unix.tm = {Unix.tm_sec = 16; Unix.tm_min = 17; Unix.tm_hour = 12; Unix.tm_mday = 9; Unix.tm_mon = 8; Unix.tm_year = 104; Unix.tm_wday = 4; Unix.tm_yday = 252; Unix.tm_isdst = false} # I am not sure that staying in Caml Light is a sensible thing to do, especially for code that you are working on. Maybe taking the necessary time to port your code from Caml-Light (which is not active anymore) to Ocaml (which is actively developped and has a bigger community) is really worth the effort. -- Basile STARYNKEVITCH -- basile dot starynkevitch at inria dot fr Project cristal.inria.fr - temporarily http://cristal.inria.fr/~starynke --- all opinions are only mine ------------------- 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