# getValueAsTime method

DateTime? getValueAsTime()

Gets the the field value as a time.

return The field value as a time. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    DateTime? getValueAsTime() {
      DateTime valueAsTime = DateTime();
      var err = biosealSDK.id3BiosealField_GetValueAsTime(_pHandle.value, valueAsTime.handle);
      if (err == BiosealError.objectDoesNotExist.value) {
        valueAsTime.dispose();
        return null;
      }
      if (err != BiosealError.success.value) {
        valueAsTime.dispose();
        throw BiosealException(err);
      }
      return valueAsTime;
    }