getArrivalTimeText

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

Returns the formatted text to display the arrival time

Return

the formatted arrival time text using DateFormat.getTimeFormat(context).format

Parameters

context

the context used

durationToDest

the remaining duration in seconds to the destination

departureTime

Calendar set to the departure time used to calculate arrival time