/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.utils/MapUtils/formatElapsedTime

formatElapsedTime

\ fun formatElapsedTime(ageInSeconds: Long, vehicle: RealTimeVehicle? = null): String

Formats elapsed time into a human-readable string (e.g., "15 seconds ago" or "1 minute and 15 seconds ago").

Return

The formatted elapsed time string.

Parameters

androidJvm

ageInSeconds The age of the data in seconds.
vehicle Optional RealTimeVehicle object. If provided, its label will be included in the message.