relativeToNow

fun relativeToNow(nowThreshold: Duration = 59.seconds): VerdandiRelativeMoment

Computes the relative description of this moment compared to Verdandi.now.

Returns Now if the absolute difference is within nowThreshold, otherwise Past or Future with calendar-aware components.

val relative = moment.relativeToNow(30.seconds)
val text = relative format {
dominant labeled { it.resolve() }
}

Return

a VerdandiRelativeMoment describing the relation.

Parameters

nowThreshold

maximum difference to be considered "now".