Hi All,
I'm enjoying using Joda Time classes in ERJars. I seem to always manipulate
dates more easily and naturally. But once I come up with the compute joda
DateTime I'm converting it to NSTimestamp as follows:
DateTime dt = new DateTime();
// Manipulate dt
dt = dt.plusHours(1);
// Convert back to NSTimestamp to store in EO property
NSTimestamp ts = new NSTimestamp(dt.getMillis());
Is this the right way to do the conversion back to NSTimestamp?
And how about NSTimestamp into a joda DateTime? Is it
dt = new DateTime(ts.getTime());
?
Thanks,
Ricardo
_______________________________________________
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]