presto-redis/src/main/java/io/prestosql/plugin/redis/decoder/hash/ISO8601HashRedisFieldDecoder.java/ISO8601HashRedisFieldDecoder/getLong
class ISO8601HashRedisFieldDecoder:        @Override
        public long getLong()
        {
            long millis = FORMATTER.parseMillis(getSlice().toStringAscii());

            Type type = columnHandle.getType();
            if (type.equals(DATE)) {
                return MILLISECONDS.toDays(millis);
            }
            if (type.equals(TIMESTAMP) || type.equals(TIME)) {
                return millis;
            }
            if (type.equals(TIMESTAMP_WITH_TIME_ZONE) || type.equals(TIME_WITH_TIME_ZONE)) {
                return packDateTimeWithZone(millis, 0);
            }

            return millis;
        }