Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
type TimeZoneInfo = { | |
friendlyName: string | |
offsetString: string | |
offsetNumeric: number | |
longTimezones: string[] | |
} | |
function offsetStringToNumeric(offsetString: string): number { | |
const sign = offsetString.startsWith("GMT-") ? -1 : 1 | |
const [hours, minutes] = offsetString.slice(4).split(":").map(Number) |