void writeOffsetDateTime(int repetitionLevel, OffsetDateTime offsetDateTime) {
      long timestamp = offsetDateTime.toInstant().toEpochMilli();
      int julianDay = (int) (timestamp / MILLIS_IN_DAY + 2440588L);
      long nanosOfDay =
          timestamp % MILLIS_IN_DAY * NANOS_PER_MILLISECOND
              + offsetDateTime.getNano() % NANOS_PER_MILLISECOND;
      writeBinary(repetitionLevel, julianDay, nanosOfDay);
    }
Writes Julian day and nanoseconds in a day from the local date time
amoro-format-mixed/amoro-mixed-hive/src/main/java/org/apache/iceberg/data/parquet/AdaptHiveBaseParquetWriter.java