TimeConverter

Functions

Link copied to clipboard

Converts seconds to minutes

Link copied to clipboard
fun getArrivalTime(duration: Int, departureTime: Calendar): Calendar
fun getArrivalTime(duration: Int, departureTime: Date): Date

Gets the arrival time depending on the remaining duration and the departureTime

Link copied to clipboard
fun getArrivalTimeText(context: Context, durationToDest: Int, departureTime: Calendar = Calendar.getInstance()): String

Returns the formatted text to display the arrival time

Link copied to clipboard
fun getRemainingDurationText(context: Context, seconds: Int): String

Returns the formatted text to display the remaining duration