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 QAA26662; Mon, 15 Sep 2003 16:48:45 +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 QAA15642 for ; Mon, 15 Sep 2003 16:48:44 +0200 (MET DST) Received: from esemetz.metz.supelec.fr (esemetz.metz.supelec.fr [193.48.224.212]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8FEmgf28917 for ; Mon, 15 Sep 2003 16:48:43 +0200 (MET DST) Received: from TuX.rez-metz.ese-metz.fr (TuX.rez-metz.supelec.fr [193.48.225.53]) by esemetz.metz.supelec.fr (8.11.6/8.9.3) with ESMTP id h8FEmgf28302 for ; Mon, 15 Sep 2003 10:48:42 -0400 Received: from antoine by TuX.rez-metz.ese-metz.fr with local (Exim 3.36 #1 (Debian)) id 19yuef-0003pl-00 for ; Mon, 15 Sep 2003 16:48:42 +0200 Date: Mon, 15 Sep 2003 16:48:41 +0200 From: Antoine Schweitzer-Chaput To: caml-list@inria.fr Subject: Re: [Caml-list] date manipulation library Message-ID: <20030915144841.GA14711@ese-metz.ese> Mail-Followup-To: caml-list@inria.fr References: <20030915143708.GK2354@alan-schm1p> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20030915143708.GK2354@alan-schm1p> User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; antoine:01 antoine:01 caml-list:01 caml:01 constructors:01 float:02 wrote:03 library:03 constructive:04 tricky:06 languages:06 problem:07 showed:07 i've:09 ...,:11 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > (convert the date to float, add the number of seconds corresponding to > the duration (tricky in the case of months), and convert back to date > format)). this is not good, because of time savings, bisextiles years, and so on... I know this is not a constructive answer, sorry..., but it is a problem I've had with programs I wrote in others languages. It showed me that one should not use timestamps but only predefined date constructors, however I don't know how they work in Caml... ------------------- 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