The fix is to first convert time to a 64-bit microsecond value, then to the configured tick value. Noted by David Sidrane.