string.tryParse

bool tryParse(const char[] this, overload out UtcOffset value)

Parses UTC offset text.

Remarks

Parsing accepts Z case-insensitively and ignores leading and trailing whitespace.

Returns

true when parsing succeeds.

Parameters

const char[]
this
overload out UtcOffset
value

Receives the parsed offset, or default when parsing fails.

Generated with campc 0.12.0-preview.1.