getUTCOffsetMinutes
Gets the difference in minutes between Universal Coordinated Time (UTC) and the time on the local system.
getUTCOffsetMinutes()
Gets the difference in minutes between Universal Coordinated Time (UTC) and the time on the local system.
Signature
getUTCOffsetMinutes(): numberReturn Type
number — The offset in minutes
Description
Returns the system’s UTC offset in minutes, but using a flipped sign convention from JavaScript's native API:
- Returns a positive value if the local time is ahead of UTC.
- Returns a negative value if behind UTC.
Note
🧠 This matches the intuitive reading of +06:00 → 360, -05:30 → -330, unlike Date.prototype.getTimezoneOffset() which reverses this.
Example
playground.ts
Last updated: Thu, May 21, 2026 03:14:59PM (UTC)
