I'm building a python application where I get a lot of data from various timeseries (ranging from 1 minute to 1 day). I would only like to store the times (unix timestamps) that are exactly on a whole hour (xx:00 minutes). How do I build this check?
Is a simple if timestamp % 3600 == 0: save the timestamp
sufficient enough? Or is there a better way?