localizeDiff

fun Instant.localizeDiff(reference: Instant, options: TickingDurationOptions = TickingDurationOptions(), locale: PlatformLocale = getDefaultLocale()): TickingValue<String>(source)

Calculates the diff between this Instant and reference, and localizes the result with the given options in the given locale.

See also


fun Instant.localizeDiff(options: TickingDurationOptions = TickingDurationOptions(), locale: PlatformLocale = getDefaultLocale(), clock: Clock = Clock.System): TickingValue<String>(source)

Calculates the diff between this Instant and the current instnat of clock, and localizes the result with the given options in the given locale.

See also