There is a difference between MILLISECONDS.toSeconds(duration) and duration.toSeconds()
As for all data being stored as primitives, sometimes being able to access it on higher level can be kinda nice... -Matej On Tue, Jan 26, 2010 at 9:00 PM, James Carman <jcar...@carmanconsulting.com> wrote: > All data in Java is ultimately stored as some sort of primitive type. > > On Tue, Jan 26, 2010 at 2:55 PM, Jonathan Locke > <jonathan.lo...@gmail.com> wrote: >> >> >> TimeUnit is icky and storing time values in primitive types is a bad idea. >> >> >> Alexandru Objelean wrote: >>> >>> I was wondering why would wicket need Duration class as long as java >>> provides a similar TimeUnit. Maybe it would be a good idea to deprecate >>> this >>> class & encourage usage of TimeUnit? >>> >>> Alex Objelean >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/Should-Duration-be-deprecated--tp27323675p27328738.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org