Browse thread
[Caml-list] date manipulation library
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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. Dave ------------------- 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