TimeZone.fromBcp47 constructor
- String id
Creates a time zone from a BCP-47 string.
Returns the unknown time zone if the string is not a valid BCP-47 subtag.
Additional information: 1
Implementation
factory TimeZone.fromBcp47(String id) {
final temp = _FinalizedArena();
final result = _icu4x_TimeZone_create_from_bcp47_mv1(id._utf8AllocIn(temp.arena));
return TimeZone._fromFfi(result, []);
}