Interface RelativeDateTimeReplacement

All Superinterfaces:
BiFunction<String,Integer,String>, Replacement<String>

public interface RelativeDateTimeReplacement extends Replacement<String>
Replaces each match of the given dateTimePattern (as defined by DateTimeFormatter) with a relative description, like [10m ago], [in 2d 1h 3m 33s], [13d ago].

To avoid flaky results, the value is always rounded to a certain Duration (e.g. 1s). This duration can be adjusted via roundedTo(Duration).