encodeTimeStampTz method

void encodeTimeStampTz(
  1. IStatus status,
  2. Pointer<IscTimestampTz> timeStampTz,
  3. int year,
  4. int month,
  5. int day,
  6. int hours,
  7. int minutes,
  8. int seconds,
  9. int fractions,
  10. String timeZone,
)

Implementation

void encodeTimeStampTz(
    IStatus status,
    Pointer<IscTimestampTz> timeStampTz,
    int year,
    int month,
    int day,
    int hours,
    int minutes,
    int seconds,
    int fractions,
    String timeZone) {
  if (version < 4) {
    throw UnimplementedError(
        "Firebird client library version 4 or later required.");
  }
  final timeZoneUtf = timeZone.toNativeUtf8(allocator: mem);
  try {
    _encodeTimeStampTz(self, status.self, timeStampTz, year, month, day,
        hours, minutes, seconds, fractions, timeZoneUtf);
    status.checkStatus();
  } finally {
    mem.free(timeZoneUtf);
  }
}