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 <You've already 
calculated the age in milliseconds, but you need to convert it to the 
highly arbitrary Western "years." Best to use a library like JodaTime or 
Calendar that have these edge cases programmed in. Luckily people have 
ported it to GWT. See: 
http://stackoverflow.com/questions/10311754/date-time-library-for-gwt>.*

- 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to