getValueAsTimestamp method

int getValueAsTimestamp()

Gets the the field value as a timestamp (without timezone computation).

return The field value as a timestamp (without timezone computation). throws BiosealException An error has occurred during Bioseal Library execution.

Implementation

int getValueAsTimestamp() {
  Pointer<LongLong> pValueAsTimestamp = calloc();
  try {
    var err = biosealSDK.id3BiosealField_GetValueAsTimestamp(_pHandle.value, pValueAsTimestamp);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
    final vValueAsTimestamp = pValueAsTimestamp.value;
    return vValueAsTimestamp;
  } finally {
    calloc.free(pValueAsTimestamp);
  }
}