heh.
heh.

Reputation: 21

Java date handling: store date, time and timezone in a single class

Does there exist a Java class, either in the standard libraries or third party, that allows one to store the date, time in millisecond accuracy and the timezone of the time within the same object?

The features I need:

What are my options, please? All of the features need not to be stuffed into a single class, but the simpler the better.

Upvotes: 2

Views: 731

Answers (1)

Mike Tunnicliffe
Mike Tunnicliffe

Reputation: 10772

I've heard good things about the Joda Time library, it seems to have a class to fit your needs:

org.joda.time.DateTime

http://joda-time.sourceforge.net/api-release/index.html

Upvotes: 3

Related Questions