beforeNow

fun LocalDateTime.Companion.beforeNow(duration: Duration): LocalDateTime

Return

LocalDateTime that used to be duration ago

Parameters

duration

Duration that should be subtracted from current datetime as LocalDateTime