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 RAA27566; Wed, 17 Sep 2003 17:28:24 +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 RAA05913 for ; Wed, 17 Sep 2003 17:28:23 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8HFSLf22087; Wed, 17 Sep 2003 17:28:21 +0200 (MET DST) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA01088; Wed, 17 Sep 2003 17:28:21 +0200 (MET DST) From: Pierre Weis Message-Id: <200309171528.RAA01088@pauillac.inria.fr> Subject: Re: [Caml-list] date manipulation library In-Reply-To: <20030917091943.GC14134@fistandantilus.takhisis.org> from Stefano Zacchiroli at "Sep 17, 103 11:19:43 am" To: zack@bononia.it (Stefano Zacchiroli) Date: Wed, 17 Sep 2003 17:28:21 +0200 (MET DST) Cc: caml-list@inria.fr X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; pierre:01 weis:01 pierre:01 weis:01 caml-list:01 val:01 val:01 cristal:01 0200,:01 sep:01 module:03 string:03 string:03 wrote:03 interface:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > On Wed, Sep 17, 2003 at 09:57:16AM +0200, Pierre Weis wrote: > > To give you an idea, here is the interface for the (auxilliary) date > > module: > > What about timezones? > > It seems from the interface you posted that there's no convertion > functions between them. Right, there are two functions to get the date in UTC or local time zone: val local_date_of_day : Lang.t -> string;; (* Return the current date as a string according to the [lang] argument. Assumes the local time zone. *) val date_of_day : Lang.t -> string;; (* Return the current date as a string according to the [lang] argument. Assumes Greenwich meridian time zone, also known as UTC. *) A time_zone type definition with a convertion function would be a useful addition (to gether with date zone handling). Cheers, Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ ------------------- 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