RemainingDurationCalculator

Computes the duration remaining until arrival from the current time and ETA (both expressed as a Duration since epoch). Callers needing a formatted string must pass the returned value to a DurationFormatter themselves, so both share the same truncation.

Functions

Link copied to clipboard
abstract fun calculate(current: Duration, eta: Duration): Duration