class PackedLocalTime {

  public static int pack(LocalTime time) {
    if (time == null) {
      return TimeColumnType.missingValueIndicator();
    }

    byte hour = (byte) time.getHour();
    byte minute = (byte) time.getMinute();
    char millis = (char) (time.getNano() / 1_000_000.0);
    millis = (char) (millis + (char) (time.getSecond() * 1000));
    return create(hour, minute, millis);
  }

}