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-16 (08:29)
From: Benjamin Geer <ben@s...>
Subject: Re: [Caml-list] date manipulation library
Mattias Waldau wrote:
 > The source for Java's implementation can be found at

I wouldn't recommend copying the Java interface verbatim.  The 
java.util.Date class was designed (in JDK 1.0) without regard for 
localisation.  In JDK 1.1, the java.util.Calendar class was added to fix 
this problem.  The combination of Date and Calendar works well in Java; 
Date is fine for most purposes, and when you want calendar 
functionality, you use the more heavyweight Calendar object.  But as you 
can see from the source code of Date, all its calendar functionality in 
java.util.Date is deprecated.  If you wanted to write something like 
this from scratch, you probably wouldn't want to include any calendar 
functionality in Date at all.


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