private static final Duration parseDurationInFractionsOfMinutes ( ProjectProperties properties , Number value , TimeUnit targetTimeUnit , int factor ) { Duration result = null ; if ( value != null ) { result = Duration . getInstance ( value . intValue ( ) / factor , TimeUnit . MINUTES ) ; if ( targetTimeUnit != result . getUnits ( ) ) { result = result . convertUnits ( targetTimeUnit , properties ) ; } } return ( result ) ; }
Parse duration represented as an arbitrary fraction of minutes .