ZonedIsoDateTime.strictFromString constructor
ZonedIsoDateTime.strictFromString(
- String v,
- IanaParser ianaParser
Creates a new ZonedIsoDateTime from an IXDTF string.
See the Rust documentation for try_strict_from_str for more information.
Throws Rfc9557ParseError on failure.
Implementation
factory ZonedIsoDateTime.strictFromString(String v, IanaParser ianaParser) {
final temp = _FinalizedArena();
final result = _icu4x_ZonedIsoDateTime_strict_from_string_mv1(v._utf8AllocIn(temp.arena), ianaParser._ffi);
if (!result.isOk) {
throw Rfc9557ParseError.values[result.union.err];
}
return ZonedIsoDateTime._fromFfi(result.union.ok);
}