Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] date manipulation library
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pierre Weis <pierre.weis@i...>
Subject: Re: [Caml-list] date manipulation library
> 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