Tuesday, September 30, 2014

Re: How to calculate ages correctly in GWT?

This is not a GWT problem, but basic math. You've already computed the age in milliseconds. Years are quite arbitrary in the West, so you'll need to account for all those leap years, leap seconds, and edge cases.

You should use Joda Time. GWT does support Joda Time.

- Joe

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment