Gateway timestamps in uplink metadata - how calculated?

I am trying to synchronize the data sampling more or less and exploring the latter approach. Thanks I will check the other link.