presto-hive/src/main/java/io/prestosql/plugin/hive/util/HiveBucketingV1.java/HiveBucketingV1/hashTimestamp
class HiveBucketingV1:    @SuppressWarnings("NumericCastThatLosesPrecision")
    private static int hashTimestamp(long epochMillis)
    {
        long seconds = (Math.floorDiv(epochMillis, 1000L) << 30);
        long nanos = Math.floorMod(epochMillis, 1000) * 1_000_000L;
        long secondsAndNanos = seconds | nanos;
        return (int) ((secondsAndNanos >>> 32) ^ secondsAndNanos);
    }