TV-Browser 3.3.3 API

util.ui
Class TimeFormatter

java.lang.Object
  extended by util.ui.TimeFormatter

public class TimeFormatter
extends java.lang.Object

Formats a Time to a String.

Author:
bodum

Constructor Summary
TimeFormatter()
          Use Format from the Settings
TimeFormatter(java.lang.String format)
           
 
Method Summary
 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

TV-Browser 3.3.3 API

TV-Browser 3.3.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)