computeOffsetsFromTimeZoneAndDateTime method

VariantOffsets? computeOffsetsFromTimeZoneAndDateTime(
  1. TimeZone timeZone,
  2. IsoDate localDate,
  3. Time localTime
)

See the Rust documentation for compute_offsets_from_time_zone_and_name_timestamp for more information.

Implementation

VariantOffsets? computeOffsetsFromTimeZoneAndDateTime(TimeZone timeZone, IsoDate localDate, Time localTime) {
  final result = _icu4x_VariantOffsetsCalculator_compute_offsets_from_time_zone_and_date_time_mv1(_ffi, timeZone._ffi, localDate._ffi, localTime._ffi);
  if (!result.isOk) {
    return null;
  }
  return VariantOffsets._fromFfi(result.union.ok);
}