@JvmStatic fun withTolerance(instant: Instant, tolerance: Duration): TimeWindow
Creates a TimeWindow which is centered around instant with the given tolerance on both sides, i.e the
time interval [instant - tolerance, instant + tolerance)
. midpoint will return instant.