# Class TimeFormatter

java.lang.Object
org.daypilot.date.TimeFormatter

public class TimeFormatter extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TimeFormatter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `getHour(int hour, TimeFormat clock, String format, Locale locale)`
  `static String`
  `getHour(DateTime time, TimeFormat clock, String format, Locale locale)`
  `static String`
  `getHourMinutes(DateTime date, TimeFormat clock, Locale locale)`
  `static String`
  `getHourMinutes(TimeSpan time, TimeFormat clock, Locale locale)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### TimeFormatter

    public TimeFormatter()

- ## Method Details

  - ### getHour

    public static String getHour(DateTime time, TimeFormat clock, String format, Locale locale)

  - ### getHour

    public static String getHour(int hour, TimeFormat clock, String format, Locale locale)

  - ### getHourMinutes

    public static String getHourMinutes(DateTime date, TimeFormat clock, Locale locale)

  - ### getHourMinutes

    public static String getHourMinutes(TimeSpan time, TimeFormat clock, Locale locale)