Parse timezone offset from a regex match result.
Use with TimezoneOffsetRE to extract offset minutes from a match.
RegExp exec result from TimezoneOffsetRE
Parsed offset info, or undefined if match is invalid
const match = TimezoneOffsetRE.exec("2023-01-15T10:30:00-08:00")const result = parseTimezoneOffsetMatch(match)// { offsetMinutes: -480, isUtc: false } Copy
const match = TimezoneOffsetRE.exec("2023-01-15T10:30:00-08:00")const result = parseTimezoneOffsetMatch(match)// { offsetMinutes: -480, isUtc: false }
Parse timezone offset from a regex match result.
Use with TimezoneOffsetRE to extract offset minutes from a match.