ZonedIsoDateTime.fromEpochMillisecondsAndUtcOffset constructor

ZonedIsoDateTime.fromEpochMillisecondsAndUtcOffset(
  1. int epochMilliseconds,
  2. UtcOffset utcOffset
)

Creates a new ZonedIsoDateTime from milliseconds since epoch (timestamp) and a UTC offset.

Note: ZonedIsoDateTimes created with this constructor can only be formatted using localized offset zone styles.

See the Rust documentation for from_epoch_milliseconds_and_utc_offset for more information.

Implementation

factory ZonedIsoDateTime.fromEpochMillisecondsAndUtcOffset(int epochMilliseconds, UtcOffset utcOffset) {
  final result = _icu4x_ZonedIsoDateTime_from_epoch_milliseconds_and_utc_offset_mv1(epochMilliseconds, utcOffset._ffi);
  return ZonedIsoDateTime._fromFfi(result);
}