<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 16, 2017 at 4:48 PM, Guillaume Smet <span dir="ltr">&lt;<a href="mailto:guillaume.smet@gmail.com" target="_blank">guillaume.smet@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Michael,<br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Feb 16, 2017 at 7:29 PM, Michael Nascimento <span dir="ltr">&lt;<a href="mailto:misterm@gmail.com" target="_blank">misterm@gmail.com</a>&gt;</span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Since Duration is really just seconds and milliseconds and any conversion is always flat (in the sense it doesn&#39;t take into account daylight savings time, for instance), I find it way less useful to support than Period and arbitrary TemporalAmounts (such as <a href="http://www.threeten.org/threeten-extra/apidocs/org/threeten/extra/Days.html" target="_blank">http://www.threeten.org/thr<wbr>eeten-extra/apidocs/org/threet<wbr>en/extra/Days.html</a> ).</div></div></blockquote><div><br></div></span><div>The first PR of Marko contained the Period support. The issue is that Period is not comparable and there is no easy way to compare 2 periods so we decided to not implement it for now. The typical issue we had is how do you compare 1 month and 30 days.</div></div></div></div></blockquote><div><br></div><div>You don&#39;t compare, because they are not the same. The idea is that the Period must be defined in terms of the units for which you defined its boundaries.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>As for supporting threeten-extra, it wouldn&#39;t be done in the spec anyway. </div></div></div></div></blockquote><div><br></div><div>You shouldn&#39;t support threeten-extra, but rather arbitrary TemporalAmounts. Then threeten-extra just happen to be one of those. There must be something like @ChronoUnitMax/@ChronoUnitMin such as:</div><div><br></div><div>@ChronoUnitMax(unit=DAYS, value=1)</div><div><br></div><div>As I said, I&#39;m open to provide input, I was just surprised this support was not discussed as part of the spec itself and prototyping work started right way (in the less useful class for business applications, in my opinion).</div><div><br></div><div>Regards,</div><div>Michael</div><div><br></div></div></div></div>