Sounds like I might be a fan soon (^_^)

Ramsey

On Oct 1, 2010, at 4:41 PM, Mike Schrag wrote:

yeah it's kind of a big deal to them ...

"Joda-Time makes heavy use of the immutability design pattern, and all immutable classes in Joda-Time are thread-safe. Many mutable classes whose instances are not likely to be shared are not thread- safe, and are documented as such."

On Oct 1, 2010, at 4:34 PM, Ramsey Gurley wrote:


On Oct 1, 2010, at 3:25 PM, Ray Kiddy wrote:


On Oct 1, 2010, at 11:54 AM, Ramsey Gurley wrote:

Aaaaand, I'm wrong

GregorianCalendar gc = new GregorianCalendar(2009,2,13,14,36,45);
     TimeZone pst = TimeZone.getTimeZone( "PST" );
     TimeZone est = TimeZone.getTimeZone( "EST" );
     gc.setTimeZone( pst );
     System.out.println(gc.getTimeInMillis());
     gc.setTimeZone( est );
     System.out.println(gc.getTimeInMillis());

gives me output of:

1236980205000
1236980205000

D'oh! I'll go back to *not* thinking about dates again. (^_^) Word to the wise... Chuck Hill is always right.

Ramsey

Now if we could get Chuck to write all of our code, we would be golden!

Until then, some of us have to figure out something to do. Maybe we can use joda! :-)

- ray


It sounds like Joda has lots of fans. Does anyone who has worked with it know if they have immutable data types?

Ramsey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com

This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to