com.here.msdkui.common

## Class TimeFormatterUtil

- java.lang.Object
- - com.here.msdkui.common.TimeFormatterUtil

-     public final class TimeFormatterUtil
      extends java.lang.Object

  A convenience class to convert milliseconds to a string representation.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `format(android.content.Context context, int seconds)` Converts seconds to a string representation showing days, hours and minutes.
    `static java.lang.String` | `format(android.content.Context context, long milliseconds)` Converts milliseconds to a string representation showing days, hours and minutes.

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

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

- - ### Method Detail

    - #### format

          public static java.lang.String format(android.content.Context context,
                                                long milliseconds)

      Converts milliseconds to a string representation showing days, hours and minutes.
      Parameters:
        `context` - the required context.
        `milliseconds` - time in milliseconds
      Returns:
        a formatted string.

    - #### format

          public static java.lang.String format(android.content.Context context,
                                                int seconds)

      Converts seconds to a string representation showing days, hours and minutes.
      Parameters:
        `context` - the required context.
        `seconds` - time in seconds.
      Returns:
        a formatted string.