TimeZoneOffset.withHourAndMinutes constructor

TimeZoneOffset.withHourAndMinutes(
  1. {required int hours,
  2. required int minutes}
)

Creates a new time zone offset object from the provided hours and minutes.

Offsets must follow ISO 8601 format and between -12:00 to +14:00 (inclusive).

Parameters:

  • hours — The hours.
  • minutes — The minutes.

Implementation

factory TimeZoneOffset.withHourAndMinutes(
    {required int hours, required int minutes}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_TimeZoneOffset_createWithHourAndMinutes(
        hours, minutes, errorHandler);
  });
  return TimeZoneOffset._withHandle(handle);
}