GWT Calendrical Calculations
We have a GWT application that needs to display various holidays. Is there a library available to do these calendrical calculations? If not, we'll have to开发者_如何转开发 do our own that we can ingest a set of rules to.
Cheers
An alternative approach might be to grap some calendars off the web, such as those at
this site.
I have no connection with the site, and am not making any recommendation about the quality or comprehensivity of their calendars.
Oh, and you have Googled for calendrical calculations haven't you ? To find the source ...
There is the GWT port of Joda Time called Goda. Maybe this will help you?
-JP
com.google.gwt.user.datepicker.client.CalendarUtil
has a few methods that could be useful.
JP already mentioned Goda time. I haven't used Goda, but Joda time is generally a great API. Additionally, there are a few other libraries:
http://github.com/mping/gwt-joda-time
http://code.google.com/p/gwt-time/
精彩评论