getOffsetMs function

int getOffsetMs(
  1. String zoneId,
  2. int utcMillis
)

Implementation

int getOffsetMs(String zoneId, int utcMillis) {
  final zonePtr = zoneId.toNativeUtf8(allocator: calloc);
  try {
    return _nativeGetOffset(zonePtr, utcMillis);
  } finally {
    calloc.free(zonePtr);
  }
}