mosermw commented on PR #11313: URL: https://github.com/apache/nifi/pull/11313#issuecomment-4792353038
@ohnoitsyou I think it would be acceptable to have a new method in the nifi-utils.jar FormatUtils class that does this. Perhaps named `formatTimeDuration`, it would produce a String containing the largest "whole number with TimeUnit" that a duration fits in. It's a concept similar to the existing FormatUtils `formatDataSize` method. To get an idea how to implement it, check out the nifi-api DurationFormat class. It has some private methods that do something similar. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
