Persistence: lookup item state value using timestamp

Running OH 2.5.12.

How can I lookup a persisted value using a timestamp as identifier ?

I am using a “.maximumSince(now.withTimeAtStartOfDay, “rrd4j”)” to look up a maximum reading of wind gust - but know how that, I would like to use when it happened to look up what the value of another item (wind direction) was at the same time.

How do I do that ? It is within today/this day…

maximumSince() returns a historicItem type object. That has a timestamp as well as a state.
historicState() can be then be used to retrieve from a given timestamp.