Class TimeFormatter


  • public class TimeFormatter
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeFormatter()  
    • Method Summary

      Modifier and Type Method Description
      static java.lang.String getHour​(int hour, TimeFormat clock, java.lang.String format, java.util.Locale locale)  
      static java.lang.String getHour​(DateTime time, TimeFormat clock, java.lang.String format, java.util.Locale locale)  
      static java.lang.String getHourMinutes​(DateTime date, TimeFormat clock, java.util.Locale locale)  
      static java.lang.String getHourMinutes​(TimeSpan time, TimeFormat clock, java.util.Locale locale)  
      • Methods inherited from class java.lang.Object

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

      • TimeFormatter

        public TimeFormatter()
    • Method Detail

      • getHour

        public static java.lang.String getHour​(DateTime time,
                                               TimeFormat clock,
                                               java.lang.String format,
                                               java.util.Locale locale)
      • getHour

        public static java.lang.String getHour​(int hour,
                                               TimeFormat clock,
                                               java.lang.String format,
                                               java.util.Locale locale)
      • getHourMinutes

        public static java.lang.String getHourMinutes​(DateTime date,
                                                      TimeFormat clock,
                                                      java.util.Locale locale)
      • getHourMinutes

        public static java.lang.String getHourMinutes​(TimeSpan time,
                                                      TimeFormat clock,
                                                      java.util.Locale locale)