Class SecondsToTextFormatter

java.lang.Object
io.jmix.reportsflowui.view.history.SecondsToTextFormatter
All Implemented Interfaces:
Function<Long,String>

@Component("report_SecondsToTextFormatter") public class SecondsToTextFormatter extends Object implements Function<Long,String>
Formats period in form of: {hours} h {minutes} min {seconds} sec. Zero most significant values are not displayed: e.g '13 h 45 min 38 sec', '45 min 38 sec', '38 sec'
  • Field Details

    • messages

      protected final Messages messages
  • Constructor Details

    • SecondsToTextFormatter

      public SecondsToTextFormatter(Messages messages)
  • Method Details