commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksander Ściborek <aleksanderscibo...@gmail.com>
Subject [Lang] Rounding Duration
Date Sat, 14 Jul 2018 19:26:29 GMT
Hello everyone
During implamanting a feauture in Java I noticed that there is no methods
to round duration for instance:
between 10:00 and 12:31 there is 2h 31 min. I want to write some methods to
reduce boilerplate code to calculate  time in given unit between temporals
and round this time - e.g. for 2 h 31 minutes it should return 3 hours
Aleksander

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