Any decent java.util.Calendar, Locale, TimeZone emulation?

131 views
Skip to first unread message

David Given

unread,
Sep 30, 2011, 5:31:15 PM9/30/11
to google-we...@googlegroups.com
Does anyone know of any decent libraries to emulate the above classes?
So far I've found this:

http://code.google.com/p/gwt-calendar-class/

...but it doesn't appear to be quite complete and I'm having trouble
making it work. Anyone know of anything else?

(This is to make existing code work, so switching to a different date
library won't help, I'm afraid.)

--
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────

│ "Under communism, man exploits man. Under capitalism, it's just the
│ opposite." --- John Kenneth Galbrith

signature.asc

Dennis Haupt

unread,
Sep 30, 2011, 5:35:22 PM9/30/11
to google-we...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

no. i tried, believe me.

Am 30.09.2011 23:31, schrieb David Given:
> Does anyone know of any decent libraries to emulate the above
> classes? So far I've found this:
>
> http://code.google.com/p/gwt-calendar-class/
>
> ...but it doesn't appear to be quite complete and I'm having
> trouble making it work. Anyone know of anything else?
>
> (This is to make existing code work, so switching to a different
> date library won't help, I'm afraid.)
>


- --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOhjYaAAoJENRtux+h35aGawEP/A6as/MEcaYzdHUsmn7zFGr6
u958Ewmrbx89kaklzsACTbGZ6OC1PNwaq/WYI7Zx/MEwl3xlJehICkATr5IJ3lHM
IbjNkQnvlUjiIzVK5bzD5kFAjMK8Fm14SoUBLhIBoFA/fDMFKpQCtUoKP1vkip6D
dY5ISiE/kMkJkx9cYMcjgCO0RICAGpdOm/KZ3C/W2ADHQzsXlfYXVmkD/9mzg9WR
QZw8ddo7SNEoytQ+cqT0QCRorhYpuHzHklyYY4wV0wPEl87BgyFefN5M9/U0Uh7Q
qK8xgAqVxzaunjrsrqXAkaf/gsAzgOoYE+KTdL1aAeZAvNBARBTNkrHv1ZXzHuQ+
ECoy4Gqr9f9v8EXQRIC+ItOxXBDbDpTMRvmeIWYWNIB1QAuqPtcM5m1UES48cRNe
5h6tK9pOXdIPi/2wzYuwj8ekTOfniENvvZ1WrU6Vfa96dBCOFjQY+iigHRXSfvu8
bjOReZb2DFWrMnb4SfuIyIZNnc+ww5cAU/s8T7BATieWEOm72rBN3Y2rXTbZrCRi
7sTkZaqc3WZfYcVGeVwckel/piYyitLMThhLr1Sfx7+jZ2ZcJvU3AYv6aPfe2b84
GvNfr/Zk0N3/gqK5eErq+yp1O4/74Um4lMK0RjcsTj5SIYxSYfDNxOu1V2Gggihs
CJ6QqmcC5diCgWiKAhuJ
=E1TZ
-----END PGP SIGNATURE-----

maticpetek

unread,
Oct 1, 2011, 5:15:18 AM10/1/11
to google-we...@googlegroups.com
Hello,

Regards,
   Matic
------------------
GWT stuff twitter  - http://twitter.com/#!/gwtstuff

David Given

unread,
Oct 1, 2011, 5:27:10 AM10/1/11
to google-we...@googlegroups.com
On 01/10/11 10:15, maticpetek wrote:
> Hello,
> What about http://code.google.com/p/goda-time/

Thanks, but that doesn't emulate java.util.Calendar.

signature.asc

Tom Carchrae

unread,
Oct 1, 2011, 7:42:20 AM10/1/11
to google-we...@googlegroups.com
It does not exist and really makes me wonder.  

You may be interested in this  http://code.google.com/p/datejs/   When I get a minute, I might write a GWT wrapper for it.  Will that wrapper look like Calendar, most likely not.  I have a deep hatred for Calendar.  It is one of the abominations of Java.  

Actually, I think this is why it has not been implemented in GWT.  Nobody wanted to touch it.

Do you really need full Calendar support?  Or just the functionality of Calendar?  

I get by with a combination of Date methods and DateFormatter and code similar to this: http://code.google.com/p/gwt-aux/source/browse/trunk/gwt-aux/src/main/java/com/erinors/gwtaux/shared/util/DateUtils.java?spec=svn254&r=254  

Tom

Paul Robinson

unread,
Oct 3, 2011, 4:23:08 AM10/3/11
to google-we...@googlegroups.com
There's a partial Calendar emulation in the source code here:
http://code.google.com/p/ftr-gwt-library/

It doesn't have locale and timezone stuff though.

HTH
Paul

Reply all
Reply to author
Forward
0 new messages