jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Parvulescu <alex.parvule...@gmail.com>
Subject Re: Calendar.getInstance() usage
Date Fri, 06 Sep 2013 14:36:39 GMT
thanks for the insights!

I see nobody chose to tackle the off-topic part :)

So judging by the outcome it would make sense to also change the TreeUtil
class to use 'System.currentTimeMillis()' call, instead of needlessly going
through the Calendar.

best,
alex



On Fri, Sep 6, 2013 at 3:37 PM, Jukka Zitting <jukka.zitting@gmail.com>wrote:

> Hi,
>
> On Fri, Sep 6, 2013 at 5:12 AM, Julian Reschke <julian.reschke@gmx.de>
> wrote:
> > I wasn't asking about JCR's use of Calendar (which I believe was a bad
> > idea), but the use of Calendar just to get the absolute system time...
>
> +1 When we're dealing with just the timestamp long, which by
> definition is timezone-independent, there should be no need to go
> through Calendar.
>
> BR,
>
> Jukka Zitting
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message