TimeFormatter

interface TimeFormatter

Interface used to format time strings.

Functions

Link copied to clipboard
abstract fun formatHourShort(hour: Int): String

Format hour-only time.

Link copied to clipboard
abstract fun formatTime(time: Calendar): String

Format input Calendar time, taking into account the timezone.

abstract fun formatTime(hour: Int, minute: Int): String

Format hour-minute time.