Class TimeFormatter

java.lang.Object
com.reve.utils.time.TimeFormatter

public class TimeFormatter extends Object
  • Constructor Details

    • TimeFormatter

      public TimeFormatter()
  • Method Details

    • getFormattedTime

      public String getFormattedTime(long time, String format)
      Get the time of given Calendar instance in the format specified in the parameter. See Date formats for various types of date formats possible. Some of them may not be implemented in this method yet.
      Parameters:
      time - The time specified in this instance will be converted to a printable string.
      format - The requested format of the printable date time.
      Returns:
      the printable string in the given format, of given Calendar time.
    • getFormattedTime

      public String getFormattedTime(Calendar time, String format)
      Get the time of given Calendar instance in the format specified in the parameter. See Date formats for various types of date formats possible. Some of them may not be implemented in this method yet.
      Parameters:
      time - The time specified in this instance will be converted to a printable string.
      format - The requested format of the printable date time.
      Returns:
      the printable string in the given format, of given Calendar time.