TimeZoneOffset.withString constructor
- String offset
Creates a new time zone offset object from a string, [+/-]HH:MM.
Offsets must follow ISO 8601 format and be between -12:00 to +14:00 (inclusive).
Parameters:
offset
— The amount of time ahead or behind UTC.
Implementation
factory TimeZoneOffset.withString(String offset) {
_initializeArcGISEnvironmentIfNeeded();
final coreOffset = _CString(offset);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_TimeZoneOffset_createWithString(
coreOffset.bytes, errorHandler);
});
return TimeZoneOffset._withHandle(handle);
}