ChronosChronos

getTimeZoneOffset

Returns the timezone offset of Chronos instance in ±HH:mm format maintaining current timezone.

getTimeZoneOffset()

Returns the timezone offset of Chronos instance in ±HH:mm format maintaining current timezone.

Signature

getTimeZoneOffset(): $UTCOffset

Return Type

$UTCOffset — Offset string in the format ±HH:mm

Description

Returns the offset string of this Chronos instance’s stored timezone, regardless of the current system's timezone.

  • Useful for working with date instances that were parsed with or set to a specific timezone.

Note

Follows the same sign convention as getUTCOffset() — positive if ahead of UTC, negative if behind.

Example

playground.ts

Last updated: Thu, May 21, 2026 03:14:59PM (UTC)

On this page