if the bar represents an interval far in the past, I think there can be a shortcut to pass the following code, which only makes sense if `from < now < to`.