Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2003-09-15 (16:39)
From: David Brown <caml-list@d...>
Subject: Re: [Caml-list] date manipulation library
On Mon, Sep 15, 2003 at 05:21:35PM +0200, Xavier Leroy wrote:

> Good old Unix.mktime could perhaps do the job.  It has the ability to
> correct for impossible dates, e.g. change Sept 32nd into Oct 2nd,
> or 2003-13-01 into 2004-01-01.

This isn't as much a gripe about ocaml as Unix/Posix.  Why is there a
gmtime function to split time to UTC, but no equivalent for recombining
UTC time back into seconds?

I guess I can pull mktime out of glibc, and hack it to do this, or
perhaps play some tricks with the environment.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: