chtompki commented on issue #406: [LANG-1407] DurationUtils - methods for 
rounding duration 
URL: https://github.com/apache/commons-lang/pull/406#issuecomment-472394029
 
 
   I'm not even sure that "rounding" is what's going on here. Specifically:
   
   ```java
    //given
   Duration duration = Duration.of(2, ChronoUnit.DAYS).plusMillis(1);
   //when
   long roundedDays = DurationUtils.roundUpDays(duration);
   //then
   Assertions.assertEquals(3, roundedDays);
   ```
   
   looks a whole lot like a ceiling calculation. I'm I'm curious if there's 
literature or existent examples out there in the wild about how to name this 
sort of functionality. I would think we would want to follow what ever 
convention in place is already out there.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to