class PackedLocalTime {

  public static int getSecondOfDay(int packedLocalTime) {
    if (packedLocalTime == TimeColumnType.missingValueIndicator()) {
      return IntColumnType.missingValueIndicator();
    }
    int total = getHour(packedLocalTime) * 60 * 60;
    total += getMinute(packedLocalTime) * 60;
    total += getSecond(packedLocalTime);
    return total;
  }

}