getTimeText

fun getTimeText(timeInSeconds: Int, bForceHours: Boolean = false, bCapitalizeResult: Boolean = false): Pair<String, String>

Formats the given time seconds as pair of (value, unit).

Return

Pair<String, String>

  • Pair.first - time value

  • Pair.second - time unit

Parameters

timeInSeconds

Value to be formatted.

bForceHours

Forces to format in hours even if timeInSeconds isn't big enough.

bCapitalizeResult

Capitalize the whole result pair.