# getHour method

int getHour()

Gets the the hour (0 through 23, -1 if invalid time).

return The hour (0 through 23, -1 if invalid time). throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    int getHour() {
      Pointer<Int> pHour = calloc();
      try {
        var err = biosealSDK.id3BiosealDateTime_GetHour(_pHandle.value, pHour);
        if (err != BiosealError.success.value) {
          throw BiosealException(err);
        }
        final vHour = pHour.value;
        return vHour;
      } finally {
        calloc.free(pHour);
      }
    }