Browse thread
[Caml-list] date manipulation library
-
Alan Schmitt
- Antoine Schweitzer-Chaput
- Xavier Leroy
- Matthieu Sozeau
- Julien Signoles
- Pierre Weis
[
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: | Matthieu Sozeau <mattam@a...> |
| Subject: | Re: [Caml-list] date manipulation library |
On Monday 15 September 2003 16:37, Alan Schmitt wrote: > Hi, Hi! > I am writing an application that needs to manipulate dates. More > precisely, it needs a function that, given a date and a duration (12 > days, 2 weeks, 3 months ...) returns the date at the end of the > duration. Is there a library providing such a thing ? (I have looked at > NetDate in ocamlnet, but I cannot find a way to do it that is not a hack > (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)). I'm currently writing an i18n library for OCaml (locales, timezones, dates, numbers etc...). It is in early stages of development but date calculations are at the top of my TODO list (i'm actually testing week of month, day of week (...) inference). Maybe you should look at it ? I'm particularly interseted in getting comments and advices from experienced caml developers about this code. freshmeat project page: http://freshmeat.net/projects/ocamli18n/ -- Matthieu Sozeau www: http://mattam.ath.cx ------------------- 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