Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Java - Joda Date is slow in Eclipse/Emulator -

I am trying to find a set of date functions. Looks like the Joda

http://www.joda.org/joda-time/

Does everything I need, but when I call a simple

DateTime dt = new DateTime();

it hangs the Eclipse or Emulator for about 15 seconds.

I must be doing something wrong as I haven't found anyone else complaining about it being slow.

Short of the Joda jar anyone had a datediff() code sample?

like image 484
Mark Worsnop Avatar asked Jun 05 '26 18:06

Mark Worsnop


1 Answers

I can confirm this in version 1, 1.5 and 1.62 ... I got bored after that and instead used Date4J which seems to be working perfectly and meets my needs!

http://www.date4j.net/

like image 129
Steven Elliott Avatar answered Jun 07 '26 06:06

Steven Elliott