Package jadex.commons

Class TimeFormat


  • public class TimeFormat
    extends java.lang.Object
    Class for formatting time durations.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.text.DecimalFormat od  
      protected static java.text.DecimalFormat thd  
      protected static java.text.DecimalFormat twd  
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeFormat()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String format​(long millis)
      Format the time.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • od

        protected static final java.text.DecimalFormat od
      • twd

        protected static final java.text.DecimalFormat twd
      • thd

        protected static final java.text.DecimalFormat thd
    • Constructor Detail

      • TimeFormat

        public TimeFormat()
    • Method Detail

      • format

        public static java.lang.String format​(long millis)
        Format the time.
        Parameters:
        millis - The duration in millis.
        Returns:
        The string representation.