Everyone agrees that Java's date/time handling is terrible...  
Author Message
Greg Hawkes





PostPosted: 2004-7-13 23:31:00 Top

java-programmer, Everyone agrees that Java's date/time handling is terrible... ...but are there any alternatives? I have had a look around for replacement
libraries, but I cannot find anything that meets my needs. Most of the
available choices simplify the issues (for example, ignoring time of day,
ignoring timezones, or assuming the Gregorian calendar), or provide
functionality that will not be used (such as working with dates +/-100,000
years from now). I am searching for something that will manage dates/times
at various timezones around the world, and can convert points in time into
various local calendars.

Are there any projects under way that will provide a better implementation
of Sun's Date and Calendar classes to handle dates, times of day, timezones,
daylight savings times, and calendars?

Many thanks,

Greg Hawkes <email***@***.com>
(Remove ".despam" to reply, please)



 
Christophe Vanfleteren





PostPosted: 2004-7-14 3:10:00 Top

java-programmer >> Everyone agrees that Java's date/time handling is terrible... Greg Hawkes wrote:

> ...but are there any alternatives? I have had a look around for
> replacement libraries, but I cannot find anything that meets my needs.
> Most of the available choices simplify the issues (for example, ignoring
> time of day, ignoring timezones, or assuming the Gregorian calendar), or
> provide functionality that will not be used (such as working with dates
> +/-100,000 years from now). I am searching for something that will manage
> dates/times at various timezones around the world, and can convert points
> in time into various local calendars.
>
> Are there any projects under way that will provide a better implementation
> of Sun's Date and Calendar classes to handle dates, times of day,
> timezones, daylight savings times, and calendars?
>
> Many thanks,
>
> Greg Hawkes <email***@***.com>
> (Remove ".despam" to reply, please)

Haven't tried it myself, but you mioght want to check out Joda-time:
<http://joda-time.sourceforge.net/>

--
Kind regards,
Christophe Vanfleteren