Package de.elo.utils

Class TimeUtil

java.lang.Object
de.elo.utils.TimeUtil

public class TimeUtil
extends java.lang.Object
Utility class for processing time.
  • Constructor Summary

    Constructors 
    Constructor Description
    TimeUtil()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String formatDuration​(long timeInMs)
    Takes a time in milliseconds and returns an hours, minutes, seconds and milliseconds representation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • formatDuration

      public static java.lang.String formatDuration​(long timeInMs)
      Takes a time in milliseconds and returns an hours, minutes, seconds and milliseconds representation. Leading zeros and all-zero slots are removed