theshoeshiner opened a new pull request, #1062: URL: https://github.com/apache/commons-lang/pull/1062
Relatively simple low-impact implementation of optional tokens within DurationFormatUtils. Useful when you need more human readable duration strings. Brackets [] are used to denote optional tokens. Optional tokens are only printed if non-zero. Optional literals are only printed if the preceding non-literal was non-zero. e.g. A single format: `[d'd'H'h'm'm']s's'` Can produce outputs like: ``` 1d 2h 3m 14s 2h 3m 14s 3m 14s 14s 0s ``` 2 unit tests added. -- 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]
