Module tvbrowser
Package util.ui

Class TimeFormatter


  • public class TimeFormatter
    extends java.lang.Object
    Formats a Time to a String.
    Author:
    bodum
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeFormatter()
      Use Format from the Settings
      TimeFormatter​(java.lang.String format)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String formatTime​(int hours, int minutes)
      Converts a Time into a String.
      • Methods inherited from class java.lang.Object

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

      • TimeFormatter

        public TimeFormatter()
        Use Format from the Settings
      • TimeFormatter

        public TimeFormatter​(java.lang.String format)
        Parameters:
        format - Format to use. See SimpleDateFormat.
    • Method Detail

      • formatTime

        public java.lang.String formatTime​(int hours,
                                           int minutes)
        Converts a Time into a String.
        Parameters:
        hours - Hour (24-Hour-Format!)
        minutes - Minutes
        Returns:
        String representation