I am using hourly resolution for the data and currently perform hourly rebalancing. However, I would like to reduce the frequency of rebalancing. What would be the best way to check the backtesting time when the onData function is called, so that I can, for example, make balancing in every two hours (by skipping hours that are odd numbers)? Thanks.